From: Catherine Hoang Date: Thu, 26 Jan 2023 00:33:11 +0000 (-0800) Subject: xfs_admin: get/set label of mounted filesystem X-Git-Tag: origin/for-next_2023-02-14^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9f1424863be2201711ba7fc97f9a628a8358535;p=thirdparty%2Fxfsprogs-dev.git xfs_admin: get/set label of mounted filesystem Adapt this tool to call xfs_io to get/set the label of a mounted filesystem. Signed-off-by: Catherine Hoang Reviewed-by: Allison Henderson Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/db/xfs_admin.sh b/db/xfs_admin.sh index 3a7f44ea2..cc650c425 100755 --- a/db/xfs_admin.sh +++ b/db/xfs_admin.sh @@ -29,9 +29,11 @@ do 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