summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>2000-10-09 17:31:39 +0000
committereivind <eivind@FreeBSD.org>2000-10-09 17:31:39 +0000
commit4a39f454a004e45fbf58edf33d5a7c897964fa2d (patch)
tree1dc4af23aa65164f631bbeb9f969739d5f05803b /sys/fs
parent21413d77fe0420111b362ba10c8108c1a22ee2b7 (diff)
downloadFreeBSD-src-4a39f454a004e45fbf58edf33d5a7c897964fa2d.zip
FreeBSD-src-4a39f454a004e45fbf58edf33d5a7c897964fa2d.tar.gz
Blow away the v_specmountpoint define, replacing it with what it was
defined as (rdev->si_mountpoint)
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c6
-rw-r--r--sys/fs/hpfs/hpfs_vfsops.c6
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c4
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c6
-rw-r--r--sys/fs/specfs/spec_vnops.c10
5 files changed, 16 insertions, 16 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index 0934730..49e6169 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -438,7 +438,7 @@ iso_mountfs(devvp, mp, p, argp)
isomp->im_dev = dev;
isomp->im_devvp = devvp;
- devvp->v_specmountpoint = mp;
+ devvp->v_rdev->si_mountpoint = mp;
/* Check the Rock Ridge Extention support */
if (!(argp->flags & ISOFSMNT_NORRIP)) {
@@ -505,7 +505,7 @@ iso_mountfs(devvp, mp, p, argp)
return 0;
out:
- devvp->v_specmountpoint = NULL;
+ devvp->v_rdev->si_mountpoint = NULL;
if (bp)
brelse(bp);
if (pribp)
@@ -545,7 +545,7 @@ cd9660_unmount(mp, mntflags, p)
isomp = VFSTOISOFS(mp);
- isomp->im_devvp->v_specmountpoint = NULL;
+ isomp->im_devvp->v_rdev->si_mountpoint = NULL;
error = VOP_CLOSE(isomp->im_devvp, FREAD, NOCRED, p);
vrele(isomp->im_devvp);
free((caddr_t)isomp, M_ISOFSMNT);
diff --git a/sys/fs/hpfs/hpfs_vfsops.c b/sys/fs/hpfs/hpfs_vfsops.c
index 1906799..a5be4d8 100644
--- a/sys/fs/hpfs/hpfs_vfsops.c
+++ b/sys/fs/hpfs/hpfs_vfsops.c
@@ -439,7 +439,7 @@ hpfs_mountfs(devvp, mp, argsp, p)
#endif
mp->mnt_maxsymlinklen = 0;
mp->mnt_flag |= MNT_LOCAL;
- devvp->v_specmountpoint = mp;
+ devvp->v_rdev->si_mountpoint = mp;
return (0);
failed:
@@ -447,7 +447,7 @@ failed:
brelse (bp);
mp->mnt_data = (qaddr_t)NULL;
#if defined(__FreeBSD__)
- devvp->v_specmountpoint = NULL;
+ devvp->v_rdev->si_mountpoint = NULL;
#else
devvp->v_specflags &= ~SI_MOUNTEDON;
#endif
@@ -492,7 +492,7 @@ hpfs_unmount(
}
#if defined(__FreeBSD__)
- hpmp->hpm_devvp->v_specmountpoint = NULL;
+ hpmp->hpm_devvp->v_rdev->si_mountpoint = NULL;
#else
hpmp->hpm_devvp->v_specflags &= ~SI_MOUNTEDON;
#endif
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 8af88d4..823eb36 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -725,7 +725,7 @@ mountmsdosfs(devvp, mp, p, argp)
mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
mp->mnt_flag |= MNT_LOCAL;
- devvp->v_specmountpoint = mp;
+ devvp->v_rdev->si_mountpoint = mp;
return 0;
@@ -761,7 +761,7 @@ msdosfs_unmount(mp, mntflags, p)
if (error)
return error;
pmp = VFSTOMSDOSFS(mp);
- pmp->pm_devvp->v_specmountpoint = NULL;
+ pmp->pm_devvp->v_rdev->si_mountpoint = NULL;
#ifdef MSDOSFS_DEBUG
{
struct vnode *vp = pmp->pm_devvp;
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index 1b0b97a..b520eb8 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -605,7 +605,7 @@ ntfs_mountfs(devvp, mp, argsp, p)
#endif
mp->mnt_maxsymlinklen = 0;
mp->mnt_flag |= MNT_LOCAL;
- devvp->v_specmountpoint = mp;
+ devvp->v_rdev->si_mountpoint = mp;
return (0);
out1:
@@ -616,7 +616,7 @@ out1:
dprintf(("ntfs_mountfs: vflush failed\n"));
out:
- devvp->v_specmountpoint = NULL;
+ devvp->v_rdev->si_mountpoint = NULL;
if (bp)
brelse(bp);
@@ -685,7 +685,7 @@ ntfs_unmount(
* field is NULL and touching it causes null pointer derefercence.
*/
if (ntmp->ntm_devvp->v_type != VBAD)
- ntmp->ntm_devvp->v_specmountpoint = NULL;
+ ntmp->ntm_devvp->v_rdev->si_mountpoint = NULL;
vinvalbuf(ntmp->ntm_devvp, V_SAVE, NOCRED, p, 0, 0);
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index f681cc8..ae8e11a 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -173,15 +173,15 @@ spec_open(ap)
/*
* Never allow opens for write if the device is mounted R/W
*/
- if (vp->v_specmountpoint != NULL &&
- !(vp->v_specmountpoint->mnt_flag & MNT_RDONLY))
+ if (vp->v_rdev->si_mountpoint != NULL &&
+ !(vp->v_rdev->si_mountpoint->mnt_flag & MNT_RDONLY))
return (EBUSY);
/*
* When running in secure mode, do not allow opens
* for writing if the device is mounted
*/
- if (securelevel >= 1 && vp->v_specmountpoint != NULL)
+ if (securelevel >= 1 && vfs_mountedon(vp))
return (EPERM);
/*
@@ -435,7 +435,7 @@ spec_strategy(ap)
* Collect statistics on synchronous and asynchronous read
* and write counts for disks that have associated filesystems.
*/
- if (vn_isdisk(vp, NULL) && (mp = vp->v_specmountpoint) != NULL) {
+ if (vn_isdisk(vp, NULL) && (mp = vp->v_rdev->si_mountpoint) != NULL) {
if (bp->b_iocmd == BIO_WRITE) {
if (bp->b_lock.lk_lockholder == LK_KERNPROC)
mp->mnt_stat.f_asyncwrites++;
@@ -656,7 +656,7 @@ spec_getpages(ap)
* the device. i.e. it's usually '/dev'. We need the physical block
* size for the device itself.
*
- * We can't use v_specmountpoint because it only exists when the
+ * We can't use v_rdev->si_mountpoint because it only exists when the
* block device is mounted. However, we can use v_rdev.
*/
OpenPOWER on IntegriCloud