From 90499e3f8eb3ad46cecd13f6219e89c28e330a34 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 27 Feb 2009 20:00:15 +0000 Subject: - Hold a reference on the cdev a filesystem is mounted from in the mount. - Remove the cdev pointers from the denode and instead use the mountpoint's reference to call dev2udev() in getattr(). Reviewed by: kib, julian --- sys/fs/msdosfs/msdosfsmount.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/fs/msdosfs/msdosfsmount.h') diff --git a/sys/fs/msdosfs/msdosfsmount.h b/sys/fs/msdosfs/msdosfsmount.h index 0884679..bfe3ec3 100644 --- a/sys/fs/msdosfs/msdosfsmount.h +++ b/sys/fs/msdosfs/msdosfsmount.h @@ -74,7 +74,8 @@ struct msdosfsmount { for files */ mode_t pm_dirmask; /* mask to and with file protection bits for directories */ - struct vnode *pm_devvp; /* vnode for block device mntd */ + struct vnode *pm_devvp; /* vnode for character device mounted */ + struct cdev *pm_dev; /* character device mounted */ struct bpb50 pm_bpb; /* BIOS parameter blk for this fs */ u_long pm_BlkPerSec; /* How many DEV_BSIZE blocks fit inside a physical sector */ u_long pm_FATsecs; /* actual number of fat sectors */ -- cgit v1.1