Bug 1763987

Summary: libgfapi: ls -R cifs /mount_point/.snaps directory failed with "ls: reading directory /root/dir/.snaps/test2: Not a directory"
Product: [Community] GlusterFS Reporter: yinkui <13965432176>
Component: libgfapiAssignee: bugs <bugs>
Status: CLOSED UPSTREAM QA Contact: bugs <bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6CC: bugs, pasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-12 12:16:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description yinkui 2019-10-22 06:26:47 UTC
Description of problem:
Created snaps and activate snaps, and then ls -R cifs /mount_point/.snaps directory failed.

Version-Release number of selected component (if applicable):
gluster-6
samba-4.8.3

How reproducible:
create testvol ec 1*(4+2)

Steps to Reproduce:
1.volume set features.uss on , set user.cifs on, snap-activate-on-create disable
2.start testvol
3.mount testvol on client1:/root/dir and mkdir -p /root/dir/aaa{1..5}
4.snapshot create test2 testvol no-timestamp
5.snapshot activate test2
6.ls -R /root/dir/.snaps/ can't get snapshot files.

Actual results:
[root@client1 /]# ls -R /root/dir/.snaps/
/root/dir/.snaps/:
test2

/root/dir/.snaps/test2:
ls: reading directory /root/dir/.snaps/test2: Not a directory

Expected results:
list all directory

Additional info:
features.snapshot-directory .snaps

Comment 1 Worker Ant 2020-03-12 12:16:25 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/858, and will be tracked there from now on. Visit GitHub issues URL for further details