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): How reproducible: N/A Steps to Reproduce: 1. 2. 3. Actual results: N/A Expected results: N/A Additional info: 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.