[Bugs] [Bug 1531457] New: hard Link file A to B error if A is just created
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jan 5 07:39:23 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1531457
Bug ID: 1531457
Summary: hard Link file A to B error if A is just created
Product: GlusterFS
Version: 3.12
Component: fuse
Severity: urgent
Assignee: bugs at gluster.org
Reporter: george.lian at nokia.com
CC: bugs at gluster.org
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.create a volume name "test" with replicated
2.set volume option cluster.consistent-metadata with on:
gluster v set test cluster.consistent-metadata on
3. mount volume test on client on /mnt/test
4. create a file aaa size >1
echo "1234567890" >/mnt/test/aaa
5. shutdown a replicat node, let's say sn-1, only let sn-0 worked
6. cp /mnt/test/aaa /mnt/test/bbb; link /mnt/test/bbb /mnt/test/ccc
Actual results:
# cp /mnt/test/aaa /mnt/test/bbb;link /mnt/test/bbb /mnt/test/ccc
link: cannot create link '/mnt/test/ccc' to '/mnt/test/bbb': No such file or
directory
[root at mn-0:/mnt/test]
# ls -l /mnt/test/bbb
-rw-r--r-- 1 root root 25 Jan 5 09:34 /mnt/test/bbb
[root at mn-0:/mnt/test]
# ls -l /mnt/test/ccc
ls: cannot access '/mnt/test/ccc': No such file or directory
Expected results:
should be no error for link
Additional info:
after investigate on kernel with ftrace, it should be error in kernel in
fuction vfs_link :
if (inode->i_nlink == 0 && !(inode->i_state & I_LINKABLE))
error = -ENOENT;
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list