1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
17 " Pretty-prints the filesystem geometry as derived from the superblock.\n"
18 " The output has the same format as mkfs.xfs, xfs_info, and other utilities.\n"
29 struct xfs_fsop_geom geo
;
32 error
= -libxfs_fs_geometry(&mp
->m_sb
, &geo
,
33 XFS_FS_GEOM_MAX_STRUCT_VER
);
35 dbprintf(_("could not obtain geometry\n"));
40 xfs_report_geom(&geo
, fsdevice
, x
.logname
, x
.rtname
);
44 static const struct cmdinfo info_cmd
= {
52 .oneline
= N_("pretty-print superblock info"),
59 add_command(&info_cmd
);