Bug 1530341

Summary: [snapshot cifs]ls on .snaps directory is throwing input/output error over cifs mount
Product: [Community] GlusterFS Reporter: Shyamsundar <srangana>
Component: snapshotAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.10CC: amukherj, anoopcs, bugs, rhs-bugs, rhs-smb, rkavunga, sbhaloth, storage-qa-internal, vdas
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.10.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1447266 Environment:
Last Closed: 2018-01-08 16:03:38 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:
Bug Depends On: 1447266    
Bug Blocks:    

Description Shyamsundar 2018-01-02 16:28:06 UTC
+++ This bug was initially created as a clone of Bug #1447266 +++

+++ This bug was initially created as a clone of Bug #1441280 +++

Description of problem:
ls on .snaps directory is throwing input/output error over cifs mount.
Listing works on fuse mount and windows mount.

How reproducible:
Always

Steps to Reproduce:
1.Enable uss & VSS plugins
2.Mount cifs on a samba ctdb gluster cluster
3.cd to the mount point
4. Do ll or ls over the cifs mount

Actual results:
ls: reading directory .snaps/: Input/output error

Expected results:
Should list out contents

Comment 1 Worker Ant 2018-01-02 16:30:11 UTC
REVIEW: https://review.gluster.org/18792 (gfapi: fix handling of dot and double dot in path) posted (#2) for review on release-3.10 by Shyamsundar Ranganathan

Comment 2 Worker Ant 2018-01-03 15:19:45 UTC
COMMIT: https://review.gluster.org/18792 committed in release-3.10 by \"Taehwa Lee\" <alghost.lee> with a commit message- gfapi: fix handling of dot and double dot in path

This patch is to handle "." and ".." in file path. Which means
this special dentry names will be resolved before sending fops
on the path.

Change-Id: I5e92f6d1ad1412bf432eb2488e53fb7731edb013
BUG: 1530341
Signed-off-by: Mohammed Rafi KC <rkavunga>
Reviewed-on: https://review.gluster.org/17177
Smoke: Gluster Build System <jenkins.org>
Reviewed-by: Niels de Vos <ndevos>
CentOS-regression: Gluster Build System <jenkins.org>
NetBSD-regression: NetBSD Build System <jenkins.org>
Reviewed-by: Jeff Darcy <jeff.us>
(cherry picked from commit 269e2ccf45ddc662d8373eb887ae6cef96e2ef37)

Comment 3 Shyamsundar 2018-01-08 16:03:38 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.9, please open a new bug report.

glusterfs-3.10.9 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/announce/2018-January/000088.html
[2] https://www.gluster.org/pipermail/gluster-users/