summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-11-03 12:05:39 +0000
committerbde <bde@FreeBSD.org>1999-11-03 12:05:39 +0000
commitd60ac1963ebc18f10982883db332b5256d7bc2de (patch)
treea651e13ac48890d0155fc25a3be13e0346be9c67 /sys/gnu/ext2fs
parentebbd3f872fe428977e8425d93a3102db4eff37fb (diff)
downloadFreeBSD-src-d60ac1963ebc18f10982883db332b5256d7bc2de.zip
FreeBSD-src-d60ac1963ebc18f10982883db332b5256d7bc2de.tar.gz
Quick fix for breakage of ext2fs link counts as reported by stat(2) by
the soft updates changes: only report the link count to be i_effnlink in ufs_getattr() for file systems that maintain i_effnlink. Tested by: Mike Dracopoulos <mdraco@math.uoa.gr>
Diffstat (limited to 'sys/gnu/ext2fs')
-rw-r--r--sys/gnu/ext2fs/ext2_mount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/gnu/ext2fs/ext2_mount.h b/sys/gnu/ext2fs/ext2_mount.h
index 4497454..05f19da 100644
--- a/sys/gnu/ext2fs/ext2_mount.h
+++ b/sys/gnu/ext2fs/ext2_mount.h
@@ -95,6 +95,7 @@ struct ufsmount {
struct netexport um_export; /* export information */
int64_t um_savedmaxfilesize; /* XXX - limit maxfilesize */
struct malloc_type *um_malloctype; /* The inodes malloctype */
+ int um_i_effnlink_valid; /* i_effnlink valid? */
int (*um_blkatoff) __P((struct vnode *, off_t, char **, struct buf **));
int (*um_truncate) __P((struct vnode *, off_t, int, struct ucred *, struct proc *));
int (*um_update) __P((struct vnode *, int));
OpenPOWER on IntegriCloud