Bug 789870 - Adding duplicate bricks are possible by adding a "//" in the path seperator
Summary: Adding duplicate bricks are possible by adding a "//" in the path seperator
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Vivek Agarwal
QA Contact: Shwetha Panduranga
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 06:48 UTC by shylesh
Modified: 2016-02-18 00:02 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:20:49 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description shylesh 2012-02-13 06:48:38 UTC
Description of problem:
Adding duplicate bricks to a volume is possible

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

How reproducible:
Always

Steps to Reproduce:
1.create a volume with a brick say brick path is "/export/sda/brick1"
2.add-brick with extra slash in the path "/export/sda//brick1"

  
Actual results:
These two are considered as two seperate bricks and will be allowed, the side effect is "any file created on the mount pointed will appear twice upon ls"

Expected results:
Should not allow to add duplicate bricks

Additional info:

Comment 1 Amar Tumballi 2012-05-31 17:24:44 UTC
This is fixed by http://review.gluster.com/3315, and is in only master branch.

Comment 2 Amar Tumballi 2012-06-01 06:53:47 UTC
the bug fix is only in upstream, not in release-3.3. Hence moving it out of the ON_QA, and setting MODIFIED (as a standard practice @ Red Hat)


Note You need to log in before you can comment on or make changes to this bug.