Date: Thu, 30 Dec 2010 10:52:07 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/ufs/ffs ffs_softdep.c src/sys/ufs/ufs ufs_vnops.c Message-ID: <201012301052.oBUAqVhE084742@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-12-30 10:52:07 UTC
FreeBSD src repository
Modified files:
sys/ufs/ffs ffs_softdep.c
sys/ufs/ufs ufs_vnops.c
Log:
SVN rev 216818 on 2010-12-30 10:52:07Z by kib
Handle missing jremrefs when a directory is renamed overtop of
another, deleting it. If the directory is removed, UFS always need to
remove the .. ref, even if the ultimate ref on the parent would not
change. The new directory must have a new journal entry for that ref.
Otherwise journal processing would not properly account for the
parent's reference since it will belong to a removed directory entry.
Change ufs_rename()'s dotdot rename section to always
setup_dotdot_link(). In the tip != NULL case SUJ needs the newref dependency
allocated via setup_dotdot_link().
Stop setting isrmdir to 2 for newdirrem() in softdep_setup_remove().
Remove the isdirrem > 1 checks from newdirrem().
Reported by: many
Submitted by: jeff
Tested by: pho
Revision Changes Path
1.261 +5 -7 src/sys/ufs/ffs/ffs_softdep.c
1.324 +3 -1 src/sys/ufs/ufs/ufs_vnops.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012301052.oBUAqVhE084742>
