[Bugs] [Bug 1238446] glfs_stat returns bad device ID

bugzilla at redhat.com bugzilla at redhat.com
Tue Aug 22 12:36:54 UTC 2017


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



--- Comment #6 from Venkata R Edara <redara at redhat.com> ---
Tried with python bindings of gfapim, issue not reproducible, device id is same
for all dirs and files also

>>> from gluster import gfapi 
>>> vol = gfapi.Volume('gluster2','test2')
>>> vol.mount()
>>> vol.umount()
>>> vol.mount()
>>> vol.listdir('/')
['venkat', 'venkat2']
>>> list_en = vol.listdir_with_stat('/')
>>> for i in list_en:
...    stat = i[1]
...    print(stat.st_dev)
... 
991776632
991776632
>>> with vol.fopen("/venkat/f1", 'wb') as f:
...    f.write("hello world")
... 
11
>>> with vol.fopen("/venkat/f2", 'wb') as f:
...    f.write("hello gluster")
... 
13
>>> list_files = vol.listdir_with_stat('/venkat')
>>> for entry in list_files:
...    stat = entry[1]
...    print(stat.st_dev)
... 
991776632
991776632
991776632

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=TuROUJvITN&a=cc_unsubscribe


More information about the Bugs mailing list