summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-06-04 04:50:36 +0000
committerrwatson <rwatson@FreeBSD.org>2000-06-04 04:50:36 +0000
commit584644aae90891faf8ac011e55e571197f622fa5 (patch)
tree2c9de3c7537e12036d6c2108b62ae8e04fe1aba7 /sys/ufs
parentf6670dbaec1beb6f61af858cfba74fef64143763 (diff)
downloadFreeBSD-src-584644aae90891faf8ac011e55e571197f622fa5.zip
FreeBSD-src-584644aae90891faf8ac011e55e571197f622fa5.tar.gz
o If FFS_EXTATTR is defined, don't print out an error message on unmount
if an FFS partition returns EOPNOTSUPP, as it just means extended attributes weren't enabled on that partition. Prevents spurious warning per-partition at shutdown.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 273b7eb..89ff6d3 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -818,9 +818,10 @@ ffs_unmount(mp, mntflags, p)
flags |= FORCECLOSE;
}
#ifdef FFS_EXTATTR
- if ((error = ufs_extattr_stop(mp, p))) {
- printf("ffs_unmount: ufs_extattr_stop returned %d\n", error);
- }
+ if ((error = ufs_extattr_stop(mp, p)))
+ if (error != EOPNOTSUPP)
+ printf("ffs_unmount: ufs_extattr_stop returned %d\n",
+ error);
#endif
if (mp->mnt_flag & MNT_SOFTDEP) {
if ((error = softdep_flushfiles(mp, flags, p)) != 0)
OpenPOWER on IntegriCloud