Adapt this tool to call xfs_io to get/set the label of a mounted filesystem.
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
j) DB_OPTS=$DB_OPTS" -c 'version log2'"
require_offline=1
;;
- l) DB_OPTS=$DB_OPTS" -r -c label";;
+ l) DB_OPTS=$DB_OPTS" -r -c label"
+ IO_OPTS=$IO_OPTS" -r -c label"
+ ;;
L) DB_OPTS=$DB_OPTS" -c 'label "$OPTARG"'"
- require_offline=1
+ IO_OPTS=$IO_OPTS" -c 'label -s "$OPTARG"'"
;;
O) REPAIR_OPTS=$REPAIR_OPTS" -c $OPTARG"
require_offline=1