* devices.h (FH_CYGDRIVE): Define as DEV_VIRTFS_MAJOR class device.
(DEV_CYGDRIVE_MAJOR): Remove. (iscygdrive_dev): Define. * dtable.cc (fh_alloc): Accommodate above change. * path.cc (path_conv::check): Use iscygdrive_dev to check for cygdrive. * syscalls.cc (fhandler_base::set_ino_and_dev): Drop check for DEV_CYGDRIVE_MAJOR from conditional.
This commit is contained in:
@@ -456,9 +456,6 @@ fh_alloc (path_conv& pc)
|
||||
case DEV_PTYM_MAJOR:
|
||||
fh = cnew (fhandler_pty_master, pc.dev.get_minor ());
|
||||
break;
|
||||
case DEV_CYGDRIVE_MAJOR:
|
||||
fh = cnew (fhandler_cygdrive);
|
||||
break;
|
||||
case DEV_FLOPPY_MAJOR:
|
||||
case DEV_CDROM_MAJOR:
|
||||
case DEV_SD_MAJOR:
|
||||
@@ -562,6 +559,9 @@ fh_alloc (path_conv& pc)
|
||||
case FH_DEV:
|
||||
fh = cnew (fhandler_dev);
|
||||
break;
|
||||
case FH_CYGDRIVE:
|
||||
fh = cnew (fhandler_cygdrive);
|
||||
break;
|
||||
case FH_TTY:
|
||||
if (!pc.isopen ())
|
||||
{
|
||||
|
Reference in New Issue
Block a user