2005-05-09 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler.h (class fhandler_netdrive): New class. * fhandler_netdrive.cc (fhandler_netdrive::fhandler_netdrive): New constructor. (fhandler_netdrive::exists): New method. (fhandler_netdrive::fstat): Ditto. (fhandler_netdrive::readdir): Ditto. (fhandler_netdrive::open): Ditto. * dtable.cc (build_fh_pc): Handle case FH_NETDRIVE. * path.cc (isvirtual_dev): Add FH_NETDRIVE. (mount_info::conv_to_win32_path): Detect netdrive device and bypass mount search for network paths.
This commit is contained in:
@ -1203,6 +1203,16 @@ class fhandler_proc: public fhandler_virtual
|
||||
bool fill_filebuf ();
|
||||
};
|
||||
|
||||
class fhandler_netdrive: public fhandler_virtual
|
||||
{
|
||||
public:
|
||||
fhandler_netdrive ();
|
||||
int exists();
|
||||
struct dirent *readdir (DIR *);
|
||||
int open (int flags, mode_t mode = 0);
|
||||
int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));
|
||||
};
|
||||
|
||||
class fhandler_registry: public fhandler_proc
|
||||
{
|
||||
private:
|
||||
|
Reference in New Issue
Block a user