[parted-devel] [PATCH 1/3] Remove loop_get_partition_range

Petr Uzel petr.uzel at suse.cz
Fri Dec 2 14:01:50 UTC 2011


On Fri, Dec 02, 2011 at 08:51:58AM -0500, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 12/02/2011 04:07 AM, Petr Uzel wrote:
> | If you load loop module without max_part argument, the loop devices
> | will have their ext_range sysfs attributes == 1 (here on kernel-3.1),
> | so parted won't attempt to inform the kernel about the partitions. Do
> | I miss something?
> 
> I get 256 here on 3.2-rc3.

Me too, on 3.2-rcX. The difference to 3.1 is likely linux kernel commit 
e03c8dd14915fabc101aa495828d58598dc5af98

https://lkml.org/lkml/2011/8/15/185

So for older kernels, the (ugly) parsing of loop module params is
necessary.


Petr

--
Petr Uzel
IRC: ptr_uzl @ freenode



More information about the parted-devel mailing list