[sheepdog] [PATCH] new option -i to initialize storage directory

Liu Yuan namei.unix at gmail.com
Fri Jul 20 11:27:10 CEST 2012


On 07/20/2012 04:12 PM, Dietmar Maurer wrote:
> Each directory used by sheepdog must have a 'sheepdog_lock' file.
> Users can create that file running 'sheep -i /path/to/store'. The
> daemon will not start if that file is missing.
> 
> This prevent users from starting sheep on wrong directories, for
> example when mount with fstab fails on startup.

This looks strange to me. It acts like we need mkfs the directory before
run the sheep, where as we actually make nothing to it, just create a
file lock. This extra step might solve some problems (which could be
solved by other means), but it will cause great inconvenience to all
users: we have to run sheep with sheep -i for the first time, and for
following restarting, we don't need it.

Thanks,
Yuan



More information about the sheepdog mailing list