Whamcloud - gitweb
blkid: have ntfs's UUID compatible with vol_id
authorPixel <pixel@mandriva.com>
Fri, 11 Jan 2008 10:41:15 +0000 (11:41 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Jan 2008 15:22:33 +0000 (10:22 -0500)
commitc40ad3674c9d2f0709cbe8f2f607633f25c4bb4b
treeafa28a32bcf3e79d3d933af5eaf0e60286fb87ef
parentc4ef11c5076f1441a208d1020286c95d0ff19d2c
blkid: have ntfs's UUID compatible with vol_id

Ensure the length of the UUID is always the same

without the patch:

% blkid /tmp/a /tmp/b
/tmp/a: UUID="7130E4771519577F" TYPE="ntfs"
/tmp/b: UUID="7E9B4A7CCE99CA" TYPE="ntfs"

with the patch:

% blkid /tmp/a /tmp/b
/tmp/a: UUID="7130E4771519577F" TYPE="ntfs"
/tmp/b: UUID="007E9B4A7CCE99CA" TYPE="ntfs"

ie same as:

% vol_id --uuid /tmp/a ; vol_id --uuid /tmp/b
7130E4771519577F
007E9B4A7CCE99CA

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c