Red Hat Bugzilla – Bug 823132
Need a mkdir(1) -p like functionality in code.
Last modified: 2015-11-03 18:04:25 EST
Description of problem:
Currently for creating directory at a given 'path' we only go as far as creating the last component of the 'path' if missing. This was a stop gap arrangement in place of full fledged mkdir(1) -p like functionality.
In fact in glusterd-rebalance.c, we have taken the approach of calling mkdir(1) utility for this. To avoid spawning a new process for the above or settling with an 'incomplete' solution, it would be good to have a C wrapper for mkdir(1) -p functionality in codebase.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This bug is meant to track the code changes that are necessary as described.
http://review.gluster.com/3347 fixes this bug. (Gerrit's auto update didnt happen since the fix's merge raced bug creation :) )
http://review.gluster.com/3378 simplifies the interface introduced in the commit mentioned in previous comment.