> > Any idea how to prevent that. Maybe we should not create/initialize > > the storage automatically at startup, man used a 'mksheepdogfs' to > initialize the dir. > > That way the 'sheep' can check if the directory is initialized/mounted? > > I handled this differently in my rc.startup: rather than mounting the > partitions with mount -a from /etc/fstab, I labelled them with sheep-FOO, > and did something like > > SHEEP=$(blkid -s LABEL | sed -n 's/: LABEL="\(sheep-[^"]*\)".*/ \1/p') > PORT=7000; while read DEVICE LABEL; do > mkdir -p "/mnt/$LABEL" \ > && mount -o user_xattr "$DEVICE" "/mnt/$LABEL" \ > && sheep -D -p $PORT "/mnt/$LABEL" \ > && let PORT++ > done <<< "$SHEEP" > > so I only got sheep daemons for partitions that I'd correctly mounted. To complex for me ;-) I still think a 'mkfs' tool would be better. Especially because most other systems do it the same way (you need to initialize the storage before use). - Dietmar |