From: Jeffrey Ferreira Date: Tue, 22 Jan 2019 10:56:16 +0000 (+0100) Subject: losetup: update an error message X-Git-Tag: v2.34-rc1~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=014e7eb321f22cf5f55505704501d4b605d9d256;p=thirdparty%2Futil-linux.git losetup: update an error message Update an error message to add --partscan to the list of options only allowed during loop device setup. Signed-off-by: Jeffrey Ferreira Signed-off-by: Karel Zak --- diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 6fc5d51cde..3dbbcdd3eb 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -826,7 +826,7 @@ int main(int argc, char **argv) (sizelimit || lo_flags || showdev)) errx(EXIT_FAILURE, _("the options %s are allowed during loop device setup only"), - "--{sizelimit,read-only,show}"); + "--{sizelimit,partscan,read-only,show}"); if ((flags & LOOPDEV_FL_OFFSET) && act != A_CREATE && (act != A_SHOW || !file))