[Bugs] [Bug 1196607] New: Any op on files in the root directory of the volume fails unless absolute path is specified.
bugzilla at redhat.com
bugzilla at redhat.com
Thu Feb 26 11:12:54 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1196607
Bug ID: 1196607
Summary: Any op on files in the root directory of the volume
fails unless absolute path is specified.
Product: Red Hat Storage
Version: 3.0
Component: glusterfs-devel
Severity: high
Assignee: aavati at redhat.com
Reporter: rjoseph at redhat.com
QA Contact: storage-qa-internal at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com,
nlevinki at redhat.com, pgurusid at redhat.com,
rhs-bugs at redhat.com, rwheeler at redhat.com,
sdharane at redhat.com, vbellur at redhat.com
Depends On: 1196019
+++ This bug was initially created as a clone of Bug #1196019 +++
Description of problem:
If a test case is as follows:
....
fs = glfs_init();
....
glfs_mkdir(fs, "dir1", 0755); /* dir1 being relative to the root of the
volume*/
...
glfs_fini();
The above test case fails for the below reason:
glfs_init() does not set the cwd to be "/", Hence with this patch the
expectation would be that the path should be absolute always for a file
directory under "/". i.e. the below statement succeeds:
glfs_mkdir (fs, "/dir1", 0755);
Expecting absolute patch for any file directly under "/", may break the
existing users.
Two possible fixes:
In glfs_init(), set fs->cwd to "/", not sure if there can be other cases where
it can be unset.
In glfs_resolve_path() even if glfs_cwd_get() returns NULL, call
priv_glfs_resolve_at() as it handles that case.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--- Additional comment from Anand Avati on 2015-02-25 06:20:28 EST ---
REVIEW: http://review.gluster.org/9744 (libgfapi: In glfs_init() set the cwd to
"/".) posted (#1) for review on master by Poornima G (pgurusid at redhat.com)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1196019
[Bug 1196019] Any op on files in the root directory of the volume fails
unless absolute path is specified.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=no8iRJ7tik&a=cc_unsubscribe
More information about the Bugs
mailing list