"losetup --offset 10 --sizelimit 20 foo.img" was producing a loop device with offset 20 and no sizelimit. Looks like a typo, fix it. Signed-off-by: Daniel Drake <dsd@xxxxxxxxxx> --- 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 16ace6f..9f03151 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -362,7 +362,7 @@ int main(int argc, char **argv) if (flags & LOOPDEV_FL_OFFSET) loopcxt_set_offset(&lc, offset); if (flags & LOOPDEV_FL_SIZELIMIT) - loopcxt_set_offset(&lc, sizelimit); + loopcxt_set_sizelimit(&lc, sizelimit); if (lo_flags) loopcxt_set_flags(&lc, lo_flags); if ((res = loopcxt_set_backing_file(&lc, file))) { -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html