summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-18 03:08:48 +0000
committerpeter <peter@FreeBSD.org>2001-08-18 03:08:48 +0000
commit886fd9ad6410a7fe63b78d537a2ecd09545c5d07 (patch)
tree6d33751a77b7e9b35593190cb081c11dfe8bf89e /sys/ufs
parentef02fc418968450e559e929e87fb00e5d9220ed1 (diff)
downloadFreeBSD-src-886fd9ad6410a7fe63b78d537a2ecd09545c5d07.zip
FreeBSD-src-886fd9ad6410a7fe63b78d537a2ecd09545c5d07.tar.gz
Sigh. ufs_lookup() calls ffs_snapgone(), meaning that 'options EXT2FS'
without 'options FFS' would fail to link.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_lookup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c
index b4aa6a9..1e023d6 100644
--- a/sys/ufs/ufs/ufs_lookup.c
+++ b/sys/ufs/ufs/ufs_lookup.c
@@ -39,6 +39,7 @@
* $FreeBSD$
*/
+#include "opt_ffs_broken_fixme.h"
#include "opt_ufs.h"
#include <sys/param.h>
@@ -1059,8 +1060,10 @@ out:
* drop its snapshot reference so that it will be reclaimed
* when last open reference goes away.
*/
+#if defined(FFS) || defined(IFS)
if (ip != 0 && (ip->i_flags & SF_SNAPSHOT) != 0 && ip->i_effnlink == 0)
ffs_snapgone(ip);
+#endif
return (error);
}
@@ -1108,8 +1111,10 @@ ufs_dirrewrite(dp, oip, newinum, newtype, isrmdir)
* drop its snapshot reference so that it will be reclaimed
* when last open reference goes away.
*/
+#if defined(FFS) || defined(IFS)
if ((oip->i_flags & SF_SNAPSHOT) != 0 && oip->i_effnlink == 0)
ffs_snapgone(oip);
+#endif
return (error);
}
OpenPOWER on IntegriCloud