Don't store the disk cdev in all inodes.
This commit is contained in:
parent
2966b28e5f
commit
9189809602
@ -60,7 +60,6 @@ struct iso_node {
|
||||
struct iso_node *i_next, **i_prev; /* hash chain */
|
||||
struct vnode *i_vnode; /* vnode associated with this inode */
|
||||
u_long i_flag; /* see below */
|
||||
struct cdev *i_dev; /* device where inode resides */
|
||||
ino_t i_number; /* the identity of the inode */
|
||||
/* we use the actual starting block of the file */
|
||||
struct iso_mnt *i_mnt; /* filesystem associated with this inode */
|
||||
|
@ -677,7 +677,6 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
|
||||
M_WAITOK | M_ZERO);
|
||||
vp->v_data = ip;
|
||||
ip->i_vnode = vp;
|
||||
ip->i_dev = dev;
|
||||
ip->i_number = ino;
|
||||
|
||||
error = vfs_hash_insert(vp, ino, flags, curthread, vpp);
|
||||
|
@ -188,7 +188,6 @@ cd9660_getattr(ap)
|
||||
struct vattr *vap = ap->a_vap;
|
||||
struct iso_node *ip = VTOI(vp);
|
||||
|
||||
vap->va_fsid = dev2udev(ip->i_dev); /* XXX WRONG! */
|
||||
vap->va_fileid = ip->i_number;
|
||||
|
||||
vap->va_mode = ip->inode.iso_mode;
|
||||
|
@ -60,7 +60,6 @@ struct iso_node {
|
||||
struct iso_node *i_next, **i_prev; /* hash chain */
|
||||
struct vnode *i_vnode; /* vnode associated with this inode */
|
||||
u_long i_flag; /* see below */
|
||||
struct cdev *i_dev; /* device where inode resides */
|
||||
ino_t i_number; /* the identity of the inode */
|
||||
/* we use the actual starting block of the file */
|
||||
struct iso_mnt *i_mnt; /* filesystem associated with this inode */
|
||||
|
@ -677,7 +677,6 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
|
||||
M_WAITOK | M_ZERO);
|
||||
vp->v_data = ip;
|
||||
ip->i_vnode = vp;
|
||||
ip->i_dev = dev;
|
||||
ip->i_number = ino;
|
||||
|
||||
error = vfs_hash_insert(vp, ino, flags, curthread, vpp);
|
||||
|
@ -188,7 +188,6 @@ cd9660_getattr(ap)
|
||||
struct vattr *vap = ap->a_vap;
|
||||
struct iso_node *ip = VTOI(vp);
|
||||
|
||||
vap->va_fsid = dev2udev(ip->i_dev); /* XXX WRONG! */
|
||||
vap->va_fileid = ip->i_number;
|
||||
|
||||
vap->va_mode = ip->inode.iso_mode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user