Thread (8 messages) 8 messages, 5 authors, 2009-12-14

Re: [patch 1/1] [mdadm] Add partition checks when creating a new array

From: Mr. James W. Laferriere <hidden>
Date: 2009-11-20 17:22:40

Possibly related (same subject, not in this thread)

 	Hello Luca ,

On Fri, 20 Nov 2009, Luca Berra wrote:
On Fri, Nov 13, 2009 at 01:49:24PM +1100, Neil Brown wrote:
quoted
Is there a good library that we could use?
libparted might be a possibility, but it seems rather over-weight.
/lib/libparted-1.9.so.12.0.0 is larger than /sbin/mdadm !!!

Are there any other libraries for reading different partition tables?
I guess we can open-code it if we have to but I'd be happy if another
solution could be found.
i don't think so,
but there are two tools
partx from util-linux
kpartix from multipath-tools (which is based on the former)

so we could either grab code from those or just invoke
partx -l (i believe every distro installs util-linux by default)

L.
 	Fyi ,  It seems Slackware does not install util-linux ,  It uses 
util-linux-ng which does not have partx .
 	(afaik) util-linux was reported as not be being maintained .  But that 
is hearsay .
 		Hth ,  JimL
-- 
+------------------------------------------------------------------+
| James   W.   Laferriere | System    Techniques | Give me VMS     |
| Network&System Engineer | 3237     Holden Road |  Give me Linux  |
| babydr@baby-dragons.com | Fairbanks, AK. 99709 |   only  on  AXP |
+------------------------------------------------------------------+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help