exofs: Add option to mount by osdname
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 31 Jan 2011 12:32:14 +0000 (14:32 +0200)
committerBoaz Harrosh <bharrosh@panasas.com>
Tue, 15 Mar 2011 13:02:51 +0000 (15:02 +0200)
commit9ed96484311b89360b80a4181d856cbdb21630fd
treeef372f43e6bfdf86d273d80491e7de801b69395f
parent66cd6cad4919f980dd21307d0150ff251762a264
exofs: Add option to mount by osdname

If /dev/osd* devices are shuffled because more devices
where added, and/or login order has changed. It is hard to
mount the FS you want.

Add an option to mount by osdname. osdname is any osd-device's
osdname as specified to the mkfs.exofs command when formatting
the osd-devices.
The new mount format is:
OPT="osdname=$UUID0,pid=$PID,_netdev"
mount -t exofs -o $OPT $DEV_OSD0 $MOUNTDIR

if "osdname=" is specified in options above $DEV_OSD0 is
ignored and can be empty.

Also while at it: Removed some old unused Opt_* enums.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Documentation/filesystems/exofs.txt
fs/exofs/super.c