[Bugs] [Bug 1175733] [USS]: If the snap name is same as snap-directory than cd to virtual snap directory fails

bugzilla at redhat.com bugzilla at redhat.com
Tue Jan 6 10:34:34 UTC 2015


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

Raghavendra Bhat <rabhat at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|POST                        |MODIFIED
                 CC|                            |rabhat at redhat.com



--- Comment #6 from Raghavendra Bhat <rabhat at redhat.com> ---
Description of problem:
=======================

In a scenario, if the snap name is same as the snap-directory than cd to
snaps/snaps fails.

For example:
============

The snap directory is changed to snaps as follows

[root at inception ~]# gluster v set vol0 snapshot-directory snaps
volume set: success
[root at inception ~]#

Snapshot is created with name snaps

[root at inception ~]# gluster snapshot create snaps vol0
snapshot create: success: Snap snaps created successfully
[root at inception ~]#

>From client cd to snaps/snaps from fuse client fails

[root at wingo ~]# cd /mnt/vol0
[root at wingo vol0]# 
[root at wingo vol0]# cd snaps/snaps
bash: cd: snaps/snaps: No such file or directory
[root at wingo vol0]# cd snaps/
[root at wingo snaps]# ls
snaps
[root at wingo snaps]# ls snaps
ls: cannot access snaps: No such file or directory
[root at wingo snaps]# ls -lrt snaps
ls: cannot access snaps: No such file or directory
[root at wingo snaps]# ls -lrt
total 0
d---------. 0 root root 0 Jan  1  1970 snaps
[root at wingo snaps]#


Version-Release number of selected component (if applicable):
==============================================================

glusterfs-3.6.0.32-1.el6rhs.x86_64


How reproducible:
=================

always


Steps to Reproduce:
====================
1. Create 2x2 volume
2. Enable the uss on volume
3. Change the snapshot-directory to snaps
4. Create a snapshot (snaps) of the volume 
5. Mount the volume (fuse)
6. From mount, cd to snaps/snaps

Actual results:
===============

cd to snaps/snaps fails with no such file or directory. Though ls lists it.

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


More information about the Bugs mailing list