From fcb975a6424d48d63f03961e34b92ed7c6a27362 Mon Sep 17 00:00:00 2001 From: Wanlong Gao Date: Sat, 3 Dec 2011 17:07:47 +0800 Subject: NEW API: add blkid command to print the attributes of the device A NEW API blkid. It can print the device attributes. Use it after list-devices, we can list ower devices and the attributes of each device. Use it like: blkid It's should be a usefull function. Signed-off-by: Wanlong Gao --- generator/generator_actions.ml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'generator') diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 0e39e2f5..55e8d5da 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -6538,6 +6538,44 @@ The name of the MD device. This command deactivates the MD array named C. The device is stopped, but it is not destroyed or zeroed."); + ("blkid", (RHashtable "info", [Device "device"], []), 303, [], + [InitScratchFS, Always, TestOutputHashtable ( + [["blkid"; "/dev/sdb1"]], + ["TYPE", "ext2"; + "USAGE", "filesystem"; + "PART_ENTRY_NUMBER", "1"; + "PART_ENTRY_TYPE", "0x83"; + "PART_ENTRY_OFFSET", "128"; + "PART_ENTRY_SIZE", "102145"])], + "print block device attributes", + "\ +This command returns block device attributes for C. The following fields are +usually present in the returned hash. Other fields may also be present. + +=over + +=item C + +The uuid of this device. + +=item C