[PVFS-developers] link-unlink-fix.patch
Stuart White
stuart_white1 at yahoo.com
Fri Jul 30 06:26:18 EDT 2004
In mgr/meta/md_unlink.c, code exists that prevents the data files on
the IODs from being deleted when a symbolic link is removed.
if(S_ISLNK(statbuf.st_mode)) {
It seems this code does not handle hard links properly. If the number
of hard links on a file is greater than 1, the manager should still not
instruct the IODs to remove the data for the file.
Only when a regular file with the number of links == 1 is removed
should the actual data be removed on the IODs.
if(S_ISLNK(statbuf.st_mode) || (S_ISREG(statbuf.st_mode) &&
(statbuf.st_nlink > 1))) {
The attached patch applies to 1.6.3-pre2.
Feedback is appreciated. Thanks!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link-unlink-fix.patch
Type: application/octet-stream
Size: 562 bytes
Desc: link-unlink-fix.patch
Url : http://www.beowulf-underground.org/pipermail/pvfs-developers/attachments/20040730/cf98546e/link-unlink-fix.obj
More information about the PVFS-developers
mailing list