Lines Matching +full:g +full:- +full:link
36 # Verifies that the link operation works.
42 test_name "Link operation works"
45 eval $(stat -s a | sed -e 's|st_|sta_|g')
46 eval $(stat -s z | sed -e 's|st_|stz_|g')
48 test ${sta_nlink} -eq 1 || die
50 test_name "Link count is correct after links are created"
51 eval $(stat -s a | sed -e 's|st_|sta_|g')
52 eval $(stat -s b | sed -e 's|st_|stb_|g')
54 test ${sta_nlink} -eq 2 || die
55 test ${stb_nlink} -eq 2 || die
56 test_name "Link count is correct after links are deleted"
58 eval $(stat -s b | sed -e 's|st_|stb_|g')
59 test ${stb_nlink} -eq 1 || die
62 test_name "Link operation works in subdirectories"
66 test_name "Link count is correct after links are created"
67 eval $(stat -s a | sed -e 's|st_|sta_|g')
68 eval $(stat -s c/b | sed -e 's|st_|stb_|g')
70 test ${sta_nlink} -eq 2 || die
71 test ${stb_nlink} -eq 2 || die
72 test_name "Link count is correct after links are deleted"
74 eval $(stat -s c/b | sed -e 's|st_|stb_|g')
75 test ${stb_nlink} -eq 1 || die
82 test_name "Creating a link raises NOTE_LINK on the source file"
84 test_name "Creating a link raises NOTE_WRITE on the parent directory"
90 test_name "Deleting a link raises NOTE_DELETE on one other link"
92 test_name "Deleting a link raises NOTE_WRITE on the parent directory"