[Bugme-new] [Bug 9204] New: unlink broken in hfsplus - hard links
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Sun Oct 21 09:14:14 PDT 2007
http://bugzilla.kernel.org/show_bug.cgi?id=9204
Summary: unlink broken in hfsplus - hard links
Product: File System
Version: 2.5
KernelVersion: 2.6.22
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: HFS/HFSPLUS
AssignedTo: zippel at linux-m68k.org
ReportedBy: buti at gmx.at
Most recent kernel where this bug did not occur:
Distribution: kubuntu 7.10 gutsy
Hardware Environment: MacBookPro 3.1
Software Environment: /home partition shared with OSX
Problem Description:
i'm using hfsplus for my /home (it is shared with osx). i'm having problems
with hard links on hfsplus.
the link count for a file with hard links drops from n to 0 when removing one
linked file.
Steps to reproduce:
install diskdev-cmds from:
http://gentoo.osuosl.org/distfiles/diskdev_cmds-332.14.tar.gz
http://gentoo.osuosl.org/distfiles/diskdev_cmds-332.14.patch.bz2
make -f Makefile.lnx
interesting binaries are in newfs_hfs.tproj/ and fsck_hfs.tproj/
create a filesystem:
dd if=/dev/zero of=/tmp/hfsplus bs=1M count=2
newfs_hfs /tmp/hfsplus
mkdir /tmp/mnt
mount -oloop /tmp/hfsplus /tmp/mnt
cd /tmp/mnt
echo foo > foo
ln foo foo1
ln foo foo2
ln foo foo3
# now check the link count:
ls -laFi
# it is ok
# now unlink foo3
rm foo3
# check link count again
ls -laFi
# link count is down to 0
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Bugme-new
mailing list