Bug 811970

Summary: mkdir .landfill succeeds on mountpoint but cd , ls, rmdir fails on that directory
Product: [Community] GlusterFS Reporter: M S Vishwanath Bhat <vbhat>
Component: replicateAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: gluster-bugs, mzywusko, pkarampu, rodrigo, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:39:24 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:
Attachments:
Description Flags
Test cases for old_trash to new_trash .landfill -> .glusterfs/landfill none

Description M S Vishwanath Bhat 2012-04-12 12:36:26 UTC
Description of problem:
.landfill is a afr trash directory. Not sure if users are allowed to create .landfill dir. But if it is allowed rmdir, ls and cd should also be allowed. But mkdir .landfill succeeds, but ls -a doesn't list  it. cd .landfill fails. and rmdir fails saying no such file or dir. But  mkdir .landfill again and it complains saying file already exists.

Version-Release number of selected component (if applicable):
glusterfs-3.3.0qa34

How reproducible:
Often

Steps to Reproduce:
1. Create and start a replicated volume. And mount the volume.
[root@QA-28 mnt]# mkdir .landfill
[root@QA-28 mnt]# echo $?
0
[root@QA-28 mnt]# ls -a
.  ..
[root@QA-28 mnt]# cd .landfill
bash: cd: .landfill: No such file or directory
[root@QA-28 mnt]# rmdir .landfill
rmdir: failed to remove `.landfill': No such file or directory
[root@QA-28 mnt]# mkdir .landfill
mkdir: cannot create directory `.landfill': File exists
[root@QA-28 mnt]# 


Expected results:
Either user's shouldn't be allowed to create .landfill or if allowed it should be accessible.

Comment 1 Pranith Kumar K 2012-05-31 18:50:33 UTC
Created attachment 588168 [details]
Test cases for old_trash to new_trash .landfill -> .glusterfs/landfill

The issue happens because the .landfill dir is trash dir for AFR. Attached are the test cases for moving it into .glusterfs

Comment 2 M S Vishwanath Bhat 2012-06-06 08:05:34 UTC
Patch present only in master. Not in release-3.3