Date: Sun, 29 Jul 2001 15:26:02 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ufs ufs_vfsops.c ufs_vnops.c Message-ID: <200107292226.f6TMQ2M15358@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2001/07/29 15:26:02 PDT
Modified files:
sys/ufs/ufs ufs_vfsops.c ufs_vnops.c
Log:
Two recent commits in sys/ufs/ufs interacted badly with ext2fs
because it shares ufs code. In ufs_fhtovp(), the test on i_effnlink
is invalid because ext2fs does not maintain this field. In ufs_close(),
i_effnlink is also tested, to determines whether or not to call
vn_start_write(). The ufs_fhtovp issue breaks NFS exporting of
ext2fs filesystems; I believe the other is harmless.
Fix both cases by checking um_i_effnlink_valid in the ufsmount
struct, and use i_nlink if necessary.
Noticed by: bde
Reviewed by: mckusick, bde
Revision Changes Path
1.27 +3 -2 src/sys/ufs/ufs/ufs_vfsops.c
1.170 +4 -2 src/sys/ufs/ufs/ufs_vnops.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107292226.f6TMQ2M15358>
