Red Hat Bugzilla – Bug 796603
[FEAT] `gluster volume create' should create parent directories during volume creation
Last modified: 2013-03-14 02:14:14 EDT
Description of problem:
When `gluster volume create' is executed, parent directories are not created during volume creation.
If a larger number of nodes exist during volume creation it is cumbersome to login to each node to create the necessary parent directories.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. gluster volume create foo node1:/tmp/1/2/non/existant/dir
Unable to create volume, directory does not exist.
Should create the necessary parent directories on the fly.
Need policy makers to approve this.
Last debate was if by mistake user did '/data/glsuter/exprot/vol1' instead of '/data/gluster/export/vol1', he may end up creating a directory with wrong name.
One thing we can do is we can add a 'force' option to volume create, which can create parent directories.
Could you confirm that the following patch fixes this bug?
The requested behavior is already implemented in upstream. Hence, closing the bug.