ExtDiskMount: fix the UUID feature for extX
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 24 Jun 2013 10:12:42 +0000 (13:12 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 25 Jun 2013 08:49:55 +0000 (11:49 +0300)
commitd4ee528a8578afebb26ae21d57b1791361acc1ee
treed544a1b37e15510ce930b89a50b445c47a1100ca
parent83410bc120b1f214401517f00da86c53e9f3d1b2
ExtDiskMount: fix the UUID feature for extX

The current implementation of ExtDiskMount is strange. Instead of generating a
random UUID and then ask mkfs.extX to use that UUID, it run mkfs.extX without
-U, let's mkfs.extX generate a random UUID, and then uses e2fsdump and parses
its output.

This is not very logical, and this also does not work with the version of
mkfs that we use at the moment.

Change the logic and simply use mkfs.extX -U.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/utils/fs_related.py