public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] losetup: Fix setting of sizelimit on new loop devices
@ 2012-03-09 17:56 Daniel Drake
  2012-03-13 11:27 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2012-03-09 17:56 UTC (permalink / raw)
  To: util-linux

"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@laptop.org>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] losetup: Fix setting of sizelimit on new loop devices
  2012-03-09 17:56 [PATCH] losetup: Fix setting of sizelimit on new loop devices Daniel Drake
@ 2012-03-13 11:27 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-03-13 11:27 UTC (permalink / raw)
  To: Daniel Drake; +Cc: util-linux

On Fri, Mar 09, 2012 at 05:56:50PM +0000, Daniel Drake wrote:
>  sys-utils/losetup.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

 Applied, thanks.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-13 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09 17:56 [PATCH] losetup: Fix setting of sizelimit on new loop devices Daniel Drake
2012-03-13 11:27 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox