public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* loop device length
@ 2000-12-15  3:20 Tim Riker
  2000-12-17 10:38 ` Peter Samuelson
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Riker @ 2000-12-15  3:20 UTC (permalink / raw)
  To: linux-kernel

losetup allows for setting a starting offset within a file for the loop
block device. There however is no length parameter to permit setting the
length. Adding a length parameter would allow for multiple fs images in
a single file (or device) and would correctly handle programs like
resize2fs.

What do you think? We could add a lo_length to struct loop_device and
return that if it was non-zero and less than the physical length
calculated normally by figure_loop_size().

While I'm at it why are loop_sizes[] and loop_blksizes[] not part of
struct loop_device now?
-- 
Tim Riker - http://rikers.org/ - short SIGs! <g>
All I need to know I could have learned in Kindergarten
... if I'd just been paying attention.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-12-17 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-15  3:20 loop device length Tim Riker
2000-12-17 10:38 ` Peter Samuelson

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