Whamcloud - gitweb
LU-3006 utils: mount to pass/clear UPDATE flag
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Tue, 23 Apr 2013 12:11:00 +0000 (16:11 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 27 Apr 2013 19:44:52 +0000 (15:44 -0400)
commit10cf5e4ec079fed1fa339240e00c027232f7971e
tree864a7f2e323da7856b3d8f52fb7789f62877e6c8
parent20544bd96269dbda51a76d31c2d09935637e8b2d
LU-3006 utils: mount to pass/clear UPDATE flag

this flag is maintained in mountdata (or fs attribute in case
of ZFS) and used to signal MGS parameters have been changed
and this need to be reflected in configuration profiles.

the flag is cleared before actual mount as the device can
be exclusively open by the filesystem preventing any updates.

the scope of the patch is limited to UPDATE flag, but later
we can try to use the approach to deal with WRITECONF/VIRGIN
flags as well.

test 73 added to conf-sanity to verify the case.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: Ic0b4eb6b86798450e4dd4201611e4f5a1c54ef40
Reviewed-on: http://review.whamcloud.com/5982
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
lustre/include/lustre_disk.h
lustre/obdclass/obd_mount.c
lustre/obdclass/obd_mount_server.c
lustre/tests/conf-sanity.sh
lustre/utils/mount_lustre.c