Whamcloud - gitweb
b=4952
authorphil <phil>
Mon, 28 Mar 2005 20:28:11 +0000 (20:28 +0000)
committerphil <phil>
Mon, 28 Mar 2005 20:28:11 +0000 (20:28 +0000)
commit059f43761831c9e9cd5926c6e38c3c581c915d0f
treeb4e87b1ef552dbd47f0bf8be21a5f9fb0c1785ee
parent8f9b94d51c1e518d8628b778822443947a510191
b=4952
r=adilger
Protocol change!  This commit breaks wire protocol compatibility.

connect messages now exchange another buffer, which currently contains only
flags.  This is used to implement read-only mounting, but will be used to fix
other issues as well.

The flags are exchanged with the MDT and OST, but currently only the MDT pays
any attention to them.  The places that check the disk are carefuly to check
the export for its read-only status.  Having this flag in the export gives us
the opportunity to also set it when the client doesn't request it, to force
read-only mounts as a security policy.

This commit also adds remount_fs method, which can make use of mdc_set_info to
change the rw/ro status at remount-time.  And osc_set_info should follow.
29 files changed:
lustre/include/linux/lustre_export.h
lustre/include/linux/lustre_idl.h
lustre/include/linux/lustre_import.h
lustre/include/linux/lustre_net.h
lustre/include/linux/obd.h
lustre/include/linux/obd_class.h
lustre/ldlm/ldlm_lib.c
lustre/liblustre/llite_lib.c
lustre/liblustre/super.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/super.c
lustre/llite/super25.c
lustre/lov/lov_obd.c
lustre/mdc/mdc_request.c
lustre/mds/handler.c
lustre/mds/mds_lov.c
lustre/mds/mds_open.c
lustre/mds/mds_reint.c
lustre/obdclass/llog_test.c
lustre/obdecho/echo.c
lustre/obdecho/echo_client.c
lustre/obdfilter/filter.c
lustre/osc/osc_request.c
lustre/ptlrpc/import.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/pack_generic.c
lustre/utils/llmount.c
lustre/utils/wirecheck.c