| Summary: | Improper Error Code is returned when 'mkdir .glusterfs' is issued on mountpoint. | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | M S Vishwanath Bhat <vbhat> |
| Component: | core | Assignee: | Kaushal <kaushal> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | mainline | CC: | amarts, gluster-bugs, mzywusko, vbellur |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-05-09 12:23:45 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
M S Vishwanath Bhat
2012-02-07 15:33:24 UTC
Is a known issue for now, we need to document it, after fixing the exact error code. Avati, what do you think should be the standard error for this ? Helps for documentation if we have single error for this case. Kaushal. Can you please send out op_errno=EEXIST upon encountering this mkdir? In master, right now we get EPERM as errno on the lookup perfomed before mkdir. This is set by posix_lookup(). Is this enough or is it needed to have a safegaurd in posix_mkdir() as well? Can you just make sure to return the same errno in posix_mkdir() too? That would make it clean. Vijay/Avati, any thoughts? CHANGE: http://review.gluster.com/3200 (storage/posix: Don't allow mkdir() on HIDDEN_DIRECTORY) merged in master by Vijay Bellur (vijay) With glusterfs-3.3.0qa40 I get EPERM (Operation not permitted). Is this the errno to be returned or EEXIST? We want to tell user that you don't have Permission to create (ie, EPERM), hence its fine. Then moving it to closed upstream. |