Whamcloud - gitweb
LU-1581 mount: use a special separator in svname
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 30 Jul 2012 14:03:33 +0000 (18:03 +0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Aug 2012 04:09:11 +0000 (00:09 -0400)
commit3e3b02239a78ba748954bc0b6c5fabeb7eed8523
tree63417ee912243abc6d5b6048420f5f799186dc2f
parent861105f61b063885de54ac7ec07280126e014aef
LU-1581 mount: use a special separator in svname

with this new approach mkfs marks fresh filesystem
by a special separator (:) between fsname and service
name. then mount utility recognizes this separator
and passes 'writeconf' option to the kernel mount.
upon this first mount (and having a new configuration
profile on MGS) mount utility replaces ':' with regular
'-' in svname and sets label to that.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I83e1d1e4f1fd67ae9a6453069b324696715d4fee
Reviewed-on: http://review.whamcloud.com/3612
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/lustre_disk.h
lustre/mgs/mgs_llog.c
lustre/obdclass/obd_mount.c