patch-2.4.3 linux/drivers/usb/inode.c
Next file: linux/drivers/usb/microtek.c
Previous file: linux/drivers/usb/hub.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Mar 2 13:47:21 2001
- Orig file:
v2.4.2/linux/drivers/usb/inode.c
- Orig date:
Thu Sep 7 08:38:06 2000
diff -u --recursive --new-file v2.4.2/linux/drivers/usb/inode.c linux/drivers/usb/inode.c
@@ -596,7 +596,7 @@
return NULL;
}
-static DECLARE_FSTYPE(usbdevice_fs_type, "usbdevfs", usbdevfs_read_super, 0);
+static DECLARE_FSTYPE(usbdevice_fs_type, "usbdevfs", usbdevfs_read_super, FS_SINGLE);
/* --------------------------------------------------------------------- */
@@ -691,6 +691,7 @@
return ret;
if ((ret = register_filesystem(&usbdevice_fs_type)))
usb_deregister(&usbdevfs_driver);
+ kern_mount(&usbdevice_fs_type);
#ifdef CONFIG_PROC_FS
/* create mount point for usbdevfs */
usbdir = proc_mkdir("usb", proc_bus);
@@ -702,6 +703,7 @@
{
usb_deregister(&usbdevfs_driver);
unregister_filesystem(&usbdevice_fs_type);
+ kern_umount(usbdevice_fs_type.kern_mnt);
#ifdef CONFIG_PROC_FS
if (usbdir)
remove_proc_entry("usb", proc_bus);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)