[Bugs] [Bug 1413057] [ganesha+ec]: Contents of original file are not seen when hardlink is created

bugzilla at redhat.com bugzilla at redhat.com
Fri Jan 13 14:04:49 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1413057



--- Comment #1 from Pranith Kumar K <pkarampu at redhat.com> ---
Steps to Reproduce:
1. Create ganesha cluster and create 2*(4+2) EC volume.
2. Enable nfs-ganesha on the volume with mdcache settings.
3. Mount the volume.
4. Create a file and write contents to it.
5. Create hard link to that file.
6. Read the contents of the file.

Actual results:
Contents of original file are not seen when hardlink is created

Expected results:
Contents should not get removed

Additional info:

[root at dhcp47-49 ec_test]# echo "testfile" > test1
[root at dhcp47-49 ec_test]# cat test1
testfile
[root at dhcp47-49 ec_test]# ls -lhrtia test1
10548474259765385418 -rw-r--r--. 1 root root 9 Dec 27 20:38 test1
[root at dhcp47-49 ec_test]# ln test1 test1_hlink
[root at dhcp47-49 ec_test]# ls -lhrtia test1 test1_hlink
10548474259765385418 -rw-r--r--. 2 root root 0 Dec 27 20:38 test1_hlink
10548474259765385418 -rw-r--r--. 2 root root 0 Dec 27 20:38 test1
[root at dhcp47-49 ec_test]# cat test1
[root at dhcp47-49 ec_test]# cat test1_hlink
[root at dhcp47-49 ec_test]# 
[root at dhcp47-49 ec_test]# 
[root at dhcp47-49 ec_test]# cat test1
[root at dhcp47-49 ec_test]# cat test1_hlink
[root at dhcp47-49 ec_test]# cat test1
[root at dhcp47-49 ec_test]# cat test1

-- 
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