Whamcloud - gitweb
LU-12036 ofd: add "no_precreate" mount option 16/36716/9
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 8 Nov 2019 09:04:52 +0000 (02:04 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Jan 2020 00:09:20 +0000 (00:09 +0000)
commit416e67222b769df490a8be034ef987a596dd8dff
treea35882fc63311dbef9a19893b3272dc3e7b0c807
parentebc9835a971f8a588fab3be422a31b8ba6a83395
LU-12036 ofd: add "no_precreate" mount option

Add a mount option to disallow object creation on the OST.  That
allows an OST to be mounted by the administrator without it being
immediately available for use by clients/applications.  This may
be useful if the OST needs to be added to a specific pool first,
or if it is being debugged or similar.

Mount option can be disabled with the obdfilter.*.no_precreate
tunable parameter.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Icdb64a4bdd5a66b0e9e6d483e3113b97d53ebbe5
Reviewed-on: https://review.whamcloud.com/36716
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/mount.lustre.8
lustre/include/lustre_disk.h
lustre/obdclass/obd_mount.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_obd.c
lustre/tests/conf-sanity.sh