mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
generator: Deprecate xfs_info (replaced by xfs_info2)
Deprecate this function, and suggest using xfs_info2 as its replacement.
This commit is contained in:
committed by
rwmjones
parent
e1deb358ce
commit
7833461af7
@@ -7259,27 +7259,6 @@ be returned if you called C<guestfs_list_devices>.
|
||||
To find out the maximum number of devices that could be added,
|
||||
call C<guestfs_max_disks>.|} };
|
||||
|
||||
{ defaults with
|
||||
name = "xfs_info"; added = (1, 19, 21);
|
||||
style = RStruct ("info", "xfsinfo"), [String (Dev_or_Path, "pathordevice")], [];
|
||||
impl = OCaml "Xfs.xfs_info";
|
||||
optional = Some "xfs";
|
||||
tests = [
|
||||
InitEmpty, Always, TestResult (
|
||||
[["part_disk"; "/dev/sda"; "mbr"];
|
||||
["mkfs"; "xfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; "NOARG"];
|
||||
["mount"; "/dev/sda1"; "/"];
|
||||
["xfs_info"; "/"]], "ret->xfs_blocksize == 4096"), []
|
||||
];
|
||||
shortdesc = "get information about the XFS filesystem";
|
||||
longdesc = {|C<pathordevice> is a mounted XFS filesystem or a device containing
|
||||
an XFS filesystem. This command returns miscellaneous
|
||||
metadata about the XFS filesystem.
|
||||
|
||||
The returned struct contains miscellaneous metadata. Missing
|
||||
fields are returned as C<-1> (for numeric fields) or empty
|
||||
string.|} };
|
||||
|
||||
{ defaults with
|
||||
name = "pvchange_uuid"; added = (1, 19, 26);
|
||||
style = RErr, [String (Device, "device")], [];
|
||||
|
||||
@@ -945,4 +945,26 @@ The optional C<force> boolean controls whether the context
|
||||
is reset for customizable files, and also whether the
|
||||
user, role and range parts of the file context is changed.|} };
|
||||
|
||||
{ defaults with
|
||||
name = "xfs_info"; added = (1, 19, 21);
|
||||
style = RStruct ("info", "xfsinfo"), [String (Dev_or_Path, "pathordevice")], [];
|
||||
impl = OCaml "Xfs.xfs_info";
|
||||
optional = Some "xfs";
|
||||
deprecated_by = Replaced_by "xfs_info2";
|
||||
tests = [
|
||||
InitEmpty, Always, TestResult (
|
||||
[["part_disk"; "/dev/sda"; "mbr"];
|
||||
["mkfs"; "xfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; "NOARG"];
|
||||
["mount"; "/dev/sda1"; "/"];
|
||||
["xfs_info"; "/"]], "ret->xfs_blocksize == 4096"), []
|
||||
];
|
||||
shortdesc = "get information about the XFS filesystem";
|
||||
longdesc = {|C<pathordevice> is a mounted XFS filesystem or a device containing
|
||||
an XFS filesystem. This command returns miscellaneous
|
||||
metadata about the XFS filesystem.
|
||||
|
||||
The returned struct contains miscellaneous metadata. Missing
|
||||
fields are returned as C<-1> (for numeric fields) or empty
|
||||
string.|} };
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user