diff options
author | Jeffrey Ferreira | 2019-01-22 11:56:16 +0100 |
---|---|---|
committer | Karel Zak | 2019-01-22 11:56:16 +0100 |
commit | 014e7eb321f22cf5f55505704501d4b605d9d256 (patch) | |
tree | de393ea23790a479f0df083162c4a684f31ade84 /sys-utils/losetup.c | |
parent | losetup: properly use --sector-size when create a new device (diff) | |
download | kernel-qcow2-util-linux-014e7eb321f22cf5f55505704501d4b605d9d256.tar.gz kernel-qcow2-util-linux-014e7eb321f22cf5f55505704501d4b605d9d256.tar.xz kernel-qcow2-util-linux-014e7eb321f22cf5f55505704501d4b605d9d256.zip |
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 <jeffpferreira@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r-- | sys-utils/losetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 6fc5d51cd..3dbbcdd3e 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)) |