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:
Pierre Humblet
2005-05-09 02:39:34 +00:00
parent f991d0e53e
commit adef8db0ae
5 changed files with 117 additions and 2 deletions

View File

@ -454,6 +454,9 @@ build_fh_pc (path_conv& pc)
case FH_PROCESS:
fh = cnew (fhandler_process) ();
break;
case FH_NETDRIVE:
fh = cnew (fhandler_netdrive) ();
break;
case FH_TTY:
{
if (myself->ctty == TTY_CONSOLE)