diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-02-03 21:25:32 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-02-03 21:25:32 +0000 |
commit | e061532c92740c0a14e9958b79b0edb6a221d259 (patch) | |
tree | 52f80dfb82f84c9342cc1ce7ecadf4ee66a42a52 /sys/ufs | |
parent | 7af2fba0c0ea1f0a371c8aefd97f24b6b0348be3 (diff) | |
download | FreeBSD-src-e061532c92740c0a14e9958b79b0edb6a221d259.zip FreeBSD-src-e061532c92740c0a14e9958b79b0edb6a221d259.tar.gz |
Use the correct flags field when checking for a read-only filesystem
in ufs_dirbad(). The mnt_stat.f_flags field is only updated by the
syscalls *statfs and getfsstat, so mnt_flag should be used instead.
This only affects whether or not a panic is generated on detection of
certain types of directory corruption.
Reviewed by: mckusick
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index 1396484..a403e68 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -591,7 +591,7 @@ ufs_dirbad(ip, offset, how) mp = ITOV(ip)->v_mount; (void)printf("%s: bad dir ino %lu at offset %ld: %s\n", mp->mnt_stat.f_mntonname, (u_long)ip->i_number, (long)offset, how); - if ((mp->mnt_stat.f_flags & MNT_RDONLY) == 0) + if ((mp->mnt_flag & MNT_RDONLY) == 0) panic("ufs_dirbad: bad dir"); } |