Re: Patch for util-linux (in particular, losetup) to allow passing "sizelimit"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 11, 2008 at 03:14:05PM +0300, Shachar Shemesh wrote:
>
> I am attaching a patch that enables passing a new parameter, "sizelimit", 
> to losetup. Passing a size limit allows loop directing only part of a file. 

 We need to support the option in mount(8) too.

> +  " -S | --sizelimit <num>   loop limited to only <num> bytes of the file\n"
>    " -s | --show              print device name (with -f <file>)\n"

 Well, try  http://www.google.com/search?q=losetup+sizelimit

 Loop-AES uses:

     -S <pseed>
     -s <sizelimit>

 and unfortunately some distributions use Loop-AES patch.

 The latest version of Loop-AES disables the option '--show' and uses
 "-s <sizelimit>" only.

 My suggestion is to use the long options only:

  * mark '-s' in util-linux-ng as deprecated and suggest to use the long
    option '--show' only.

  * use (only) the long option '--sizelimit' for the loop sizelimit. It means
    without '-S'.

 I think for Loop-AES guys shouldn't be problem to support these long
 options too.


     Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux