[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
Thu Sep 20 09:52:39 UTC 2018


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



--- Comment #2 from Prashanth Pai <ppai at redhat.com> ---
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

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