[parted-devel] [PATCH 1/2] libparted: don't canonicalize /dev/md/ paths

Phillip Susi psusi at ubuntu.com
Wed Jan 9 14:53:02 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/8/2013 7:02 PM, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
> 
> This is the same issue we have with /dev/mapper/ paths that was
> fixed in commit c1eb485b9fd8919e18f192d678bc52b0488e6ee0. When
> libparted is used to setup the device the symlink should be used to
> reference it, not the backing device name which could change.

What about the reverse?  If the user specifies the backing device,
don't we need to canonicalize it to the /dev/md/ path?

In other words, the problem is not canonicalizing the device, it's
*how* it is canonicalized.  Rather than just following the symlink, or
using the user argument unmodified, we need to ask the kernel what the
device's canonical ( /dev/md/ ) name is and use that.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQ7YROAAoJEJrBOlT6nu75YY4IALBRe5VC5eKWWZ+XthOrvwXU
DJedCIdVLph2/S60CEJ7jla+nxHvHSKBpLbEjw0/QI2afhnwWZNxrVdupBgq3D0g
x71GgWCfc6Sf+ZdP2+PDEYPlqezEYvTWTUC3TsPzP8OSc3rKvvtxLPzewr0kQi+0
+nVto/L0BPvRYb2qMEFHA+qF3mGzm+05Bh2eTaZY4zzOaAhwHuO1u3SLatq6Rj7N
Yci1xB9/1ZpO6id3HtzVorbbomfRySCqMv41/GVVkFhKY9XV6VbCMz8JilEbngWL
XDD1vnsFPbvtwzrUYyU2M40eIw39TXNk7ulK/Ng7/3mOpFOpQJjpqcTxod4KM0Q=
=MNOg
-----END PGP SIGNATURE-----



More information about the parted-devel mailing list