[parted-devel] [PATCH 2/5] Remove has_partitions check to allow loopback partitions

Jim Meyering jim at meyering.net
Thu Jan 5 18:00:30 UTC 2012


Phillip Susi wrote:
> Commit 1b766b69 added the _has_partitions function to check if a device
> was a loop device and if so, skip updating the kernel partition table
> because loop devices did not support partitions.  This function never
> worked anyway, and loop devices now ( since linux 3.0 ) support partitions,
> so remove this crufty code.

Thanks for the patch.

I'm about to push this, too, but with a tiny adjustment to the log:
s/3.0/3.2/, since for my purposes, loop partitioning appears not
to be useful until linux-3.2.  In particular, this kernel patch

  loop: always allow userspace partitions and optionally support automatic
  scanning (e03c8dd14915f)

leads to /sys/devices/virtual/block/loop?/ext_range becoming 256



More information about the parted-devel mailing list