Re: adding fdisk GPT support

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

 



On Tue, May 12, 2009 at 04:28:06PM +0200, Karel Zak wrote:
>  Do you mean http://oss.oracle.com/~mkp/patches/io-topology/? Does it
>  work with device-mapper? Nobody wants to call exec( dmsetup ) from
>  shared library ;-)

A more recent version of it, yes.  See
http://marc.info/?l=linux-scsi&r=1&b=200904&w=2 for the start of the
patch series.  Still doesn't do dm, but even one it does we still do
need a fallback for older kernels.  I don't really see a way around
calling dmsetup for now.  Maybe we could directly issue the dm ioctls,
but I'm not sure it's a that good idea either.

> > Maybe addding partitions table reading and probing to libblkid
> > makes most sense?
> 
>  Good point. I can imagine such solution, the question is how/where
>  we plan to use the library. The fdisk-like applications usually does
>  not care about FS type detection etc.

>  Well, the idea was to create two siblings -- "ptread" and "ptwrite",
>  where "ptwrite" is able to use/modify/write-to-disk PT description
>  that was generated by ptread.

Cfdisk shows the filesystem type, which I think is a really neat
feature, it does howerver currently not detection e.g. LVM volumes.  So
switching all this to a common backend would be really nice.
(Did I mention I really love the cfdisk interface? :))

Also there are uses cases where we just want to know that something
is on a partition, e.g. mkfs.xfs requires you to specify -f if a
block device contains either a partition table, volume manager or
a pre-existing filesystem.

Last but not least partition table reading is very little code, and
showing that into a shared library of it's own is a bit revolting.
Either we have a libfdisk or whatever doing both reading and writing,
or we have the partition table detection (and reading is not much more
than detecting and reading out a few fields) into the library we use
for all the other detection.

--
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