1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

o Display major number

This commit is contained in:
Joe Thornber 2001-11-21 18:12:41 +00:00
parent 6f842a9b05
commit 897058e5c6

View File

@ -164,15 +164,16 @@ static int _info(int argc, char **argv)
goto out;
if (!info.exists) {
printf("No such device.\n");
printf("Device does not exist.\n");
r = 1;
goto out;
}
printf("%s\t", info.suspended ? "SUSPENDED" : "ACTIVE");
printf("%d\t", info.open_count);
printf("%d\t", info.minor);
printf("%d\n", info.target_count);
printf("state: %s\n",
info.suspended ? "SUSPENDED" : "ACTIVE");
printf("open count: %d\n", info.open_count);
printf("major, minor: %d, %d\n", info.major, info.minor);
printf("number of targets: %d\n", info.target_count);
r = 1;
out: