[Bugs] [Bug 1218951] Spurious failures in fop-sanity.t

bugzilla at redhat.com bugzilla at redhat.com
Thu May 7 05:13:26 UTC 2015


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



--- Comment #2 from Nithya Balachandran <nbalacha at redhat.com> ---
Additional information:


open() appears to pass in a random (?) value for the mode even if not provided
in the call. This mode appears to include the T bit and ends up creating a DHT
'linkto' file. Fragments of the strace outputs for both the failed and fixed
test are as follows:


Working Strace output:
----------------------------------------------
arch_prctl(ARCH_SET_FS, 0x7f0fb9a8c740) = 0
mprotect(0x3062bb4000, 16384, PROT_READ) = 0
mprotect(0x604000, 4096, PROT_READ)     = 0
mprotect(0x306261f000, 4096, PROT_READ) = 0
munmap(0x7f0fb9a8f000, 116173)          = 0
open("temp-xattr-test-file_2", O_RDWR|O_CREAT, 0666) = 3    <==== correct mode 
ftruncate(3, 0)                         = 0
write(3, "This is my second string\n", 25) = 25
lseek(3, 0, SEEK_SET)                   = 0
read(3, "This is my second string\n", 25) = 25
fstat(3, {st_mode=S_IFREG|0644, st_size=25, ...}) = 0
fchmod(3, 0640)                         = 0
fchown(3, 10001, 10001)                 = 0
fsync(3)                                = 0
fsetxattr(3, "trusted.xattr-test", "working", 8, 0) = 0
fdatasync(3)                            = 0
flistxattr(3, NULL, 0)                  = 36
fgetxattr(3, "trusted.xattr-test", 0x0, 0) = 8
fremovexattr(3, "trusted.xattr-test")   = 0
close(3)                                = 0
unlink("temp-xattr-test-file_2")        = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 9), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f0fb9aab000
write(1, "fd based file operation 2 passed"..., 33fd based file operation 2
passed
) = 33
exit_group(0)

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