Bug 764227 (GLUSTER-2495) - Check for client mounting over brick directory
Summary: Check for client mounting over brick directory
Keywords:
Status: CLOSED DUPLICATE of bug 763735
Alias: GLUSTER-2495
Product: GlusterFS
Classification: Community
Component: unclassified
Version: mainline
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Rajesh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-07 16:19 UTC by Jeff Darcy
Modified: 2013-07-04 22:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Jeff Darcy 2011-03-07 16:19:35 UTC
Three times in just the past week, I've had to help users on IRC who were trying to set up peer-to-peer style mounts between a group of servers, and made the "classic" mistake of using the same directories both as bricks and as client mountpoints.  In spirit similar to bug764139, I'd like to suggest that we try to detect and avoid at least the most obvious cases of this error.  One fairly simple trick would be to have storage/posix place an xattr (e.g. trusted.glusterfs.isabrick) on the root directory.  Then mount.glusterfs and nfs/server could check for presence of this xattr, and fail the mount/export if found.  I'm sure many other schemes could be used also.

Comment 1 Rajesh 2011-08-08 03:58:09 UTC

*** This bug has been marked as a duplicate of bug 2003 ***


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