[Bugs] [Bug 1773476] gluster does not return correct filesize and blocksize after ftruncate

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 28 06:41:18 UTC 2019


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



--- Comment #9 from Ravishankar N <ravishankar at redhat.com> ---
Example postbuf values from truncate cbks as seen in gdb:

Sent by AFR to readdir-ahead:
---------------------------
$6 = {ia_flags = 6143, ia_ino = 10578400756749423401, ia_dev = 64768, ia_rdev =
0, ia_size = 52, ia_nlink = 0, ia_uid = 0, ia_gid = 0, ia_blksize = 4096,
ia_blocks = 0, ia_atime = 1574661108, ia_mtime = 1574853910, ia_ctime = 0,
ia_btime = 0, ia_atime_nsec = 650755047, ia_mtime_nsec = 928005039,
ia_ctime_nsec = 928005039, ia_btime_nsec = 0, ia_attributes = 0,
ia_attributes_mask = 0, ia_gfid =
"\004\343F\357\225sB\346\222\316\aq\005\305\323)",
  ia_type = IA_IFREG, ia_prot = {suid = 0 '\000', sgid = 0 '\000', sticky = 0
'\000', owner = {read = 1 '\001', write = 1 '\001', exec = 0 '\000'}, group =
{read = 1 '\001', write = 0 '\000', exec = 0 '\000'}, other = {read = 1 '\001',
      write = 0 '\000', exec = 0 '\000'}}}

Sent by readdir-ahead to fuse-bridge:
-----------------------------
 $7 = {ia_flags = 0, ia_ino = 0, ia_dev = 0, ia_rdev = 0, ia_size = 0, ia_nlink
= 0, ia_uid = 0, ia_gid = 0, ia_blksize = 0, ia_blocks = 0, ia_atime = 0,
ia_mtime = 0, ia_ctime = 0, ia_btime = 0, ia_atime_nsec = 0, ia_mtime_nsec = 0,
  ia_ctime_nsec = 0, ia_btime_nsec = 0, ia_attributes = 0, ia_attributes_mask =
0, ia_gfid = "\004\343F\357\225sB\346\222\316\aq\005\305\323)", ia_type =
IA_IFREG, ia_prot = {suid = 0 '\000', sgid = 0 '\000', sticky = 0 '\000',
    owner = {read = 0 '\000', write = 0 '\000', exec = 0 '\000'}, group = {read
= 0 '\000', write = 0 '\000', exec = 0 '\000'}, other = {read = 0 '\000', write
= 0 '\000', exec = 0 '\000'}}}     

Sent by fuse-bridge to the fuse-kernel:
-----------------------------------------
$9 = {ia_flags = 0, ia_ino = 0, ia_dev = 0, ia_rdev = 0, ia_size = 0, ia_nlink
= 0, ia_uid = 0, ia_gid = 0, ia_blksize = 131072, ia_blocks = 0, ia_atime = 0,
ia_mtime = 0, ia_ctime = 0, ia_btime = 0, ia_atime_nsec = 0,
  ia_mtime_nsec = 0, ia_ctime_nsec = 0, ia_btime_nsec = 0, ia_attributes = 0,
ia_attributes_mask = 0, ia_gfid =
"\004\343F\357\225sB\346\222\316\aq\005\305\323)", ia_type = IA_IFREG, ia_prot
= {suid = 0 '\000', sgid = 0 '\000',
    sticky = 0 '\000', owner = {read = 0 '\000', write = 0 '\000', exec = 0
'\000'}, group = {read = 0 '\000', write = 0 '\000', exec = 0 '\000'}, other =
{read = 0 '\000', write = 0 '\000', exec = 0 '\000'}}}

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