|
|
@ -1368,7 +1368,7 @@ extern "C" void endvfsent( );
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* HAVE_GETMNTINFO */
|
|
|
|
#endif /* HAVE_GETMNTINFO */
|
|
|
|
|
|
|
|
|
|
|
|
TQString KIO::tqfindDeviceMountPoint( const TQString& filename )
|
|
|
|
TQString KIO::findDeviceMountPoint( const TQString& filename )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString result;
|
|
|
|
TQString result;
|
|
|
|
|
|
|
|
|
|
|
@ -1383,13 +1383,13 @@ TQString KIO::tqfindDeviceMountPoint( const TQString& filename )
|
|
|
|
TQCString devname;
|
|
|
|
TQCString devname;
|
|
|
|
|
|
|
|
|
|
|
|
if( (volpath = volmgt_root()) == NULL ) {
|
|
|
|
if( (volpath = volmgt_root()) == NULL ) {
|
|
|
|
kdDebug( 7007 ) << "tqfindDeviceMountPoint: "
|
|
|
|
kdDebug( 7007 ) << "findDeviceMountPoint: "
|
|
|
|
<< "VOLMGT: can't tqfind volmgt root dir" << endl;
|
|
|
|
<< "VOLMGT: can't tqfind volmgt root dir" << endl;
|
|
|
|
return TQString::null;
|
|
|
|
return TQString::null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if( (mnttab = fopen( MNTTAB, "r" )) == NULL ) {
|
|
|
|
if( (mnttab = fopen( MNTTAB, "r" )) == NULL ) {
|
|
|
|
kdDebug( 7007 ) << "tqfindDeviceMountPoint: "
|
|
|
|
kdDebug( 7007 ) << "findDeviceMountPoint: "
|
|
|
|
<< "VOLMGT: can't open mnttab" << endl;
|
|
|
|
<< "VOLMGT: can't open mnttab" << endl;
|
|
|
|
return TQString::null;
|
|
|
|
return TQString::null;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1398,7 +1398,7 @@ TQString KIO::tqfindDeviceMountPoint( const TQString& filename )
|
|
|
|
devname += TQFile::encodeName( filename );
|
|
|
|
devname += TQFile::encodeName( filename );
|
|
|
|
devname += '/';
|
|
|
|
devname += '/';
|
|
|
|
len = devname.length();
|
|
|
|
len = devname.length();
|
|
|
|
// kdDebug( 7007 ) << "tqfindDeviceMountPoint: "
|
|
|
|
// kdDebug( 7007 ) << "findDeviceMountPoint: "
|
|
|
|
// << "VOLMGT: searching mountpoint for \"" << devname << "\""
|
|
|
|
// << "VOLMGT: searching mountpoint for \"" << devname << "\""
|
|
|
|
// << endl;
|
|
|
|
// << endl;
|
|
|
|
|
|
|
|
|
|
|
@ -1437,7 +1437,7 @@ TQString KIO::tqfindDeviceMountPoint( const TQString& filename )
|
|
|
|
// succes, use result from realpath
|
|
|
|
// succes, use result from realpath
|
|
|
|
realname = realpath_buffer;
|
|
|
|
realname = realpath_buffer;
|
|
|
|
|
|
|
|
|
|
|
|
//kdDebug(7007) << "tqfindDeviceMountPoint realname=" << realname << endl;
|
|
|
|
//kdDebug(7007) << "findDeviceMountPoint realname=" << realname << endl;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_GETMNTINFO
|
|
|
|
#ifdef HAVE_GETMNTINFO
|
|
|
|
|
|
|
|
|
|
|
@ -1909,7 +1909,7 @@ static TQString get_mount_info(const TQString& filename,
|
|
|
|
|
|
|
|
|
|
|
|
#else //!Q_OS_UNIX
|
|
|
|
#else //!Q_OS_UNIX
|
|
|
|
//dummy
|
|
|
|
//dummy
|
|
|
|
TQString KIO::tqfindDeviceMountPoint( const TQString& filename )
|
|
|
|
TQString KIO::findDeviceMountPoint( const TQString& filename )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return TQString::null;
|
|
|
|
return TQString::null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|