[Bugs] [Bug 1630804] libgfapi-python: test_listdir_with_stat and test_scandir failure on release 5 branch

bugzilla at redhat.com bugzilla at redhat.com
Fri Oct 12 03:53:00 UTC 2018


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



--- Comment #7 from Prashanth Pai <ppai at redhat.com> ---
(In reply to Prashanth Pai from comment #2)
> A simple reproducer:
> 
> #!/usr/bin/env python
> 
> import os
> import stat
> from gluster.gfapi import Volume
> 
> vol = Volume("localhost", "test")
> vol.mount()
> 
> testdir = "some_dir1"
> 
> vol.mkdir(testdir, 0755)
> file_path = os.path.join(testdir, "testfile")
> with vol.fopen(file_path, 'w') as f:
>     f.write("hello world")
> 
> # this internally calls glfs_readdirplus_r()
> dir_list = vol.listdir_with_stat(testdir)
> for index, (name, stat_info) in enumerate(dir_list):
>     print name, stat_info.st_mode

I forgot mention. The incorrect output here is that st_mode is set to 0.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list