]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: update an error message
authorJeffrey Ferreira <jeffpferreira@gmail.com>
Tue, 22 Jan 2019 10:56:16 +0000 (11:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Jan 2019 10:56:16 +0000 (11:56 +0100)
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>
sys-utils/losetup.c

index 6fc5d51cdeadc4965def38ec8d0c9042216aa1e6..3dbbcdd3ebc14df28ca9b603f48e9c6094886521 100644 (file)
@@ -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))