[PATCH 0/3 V2] xfs_io: implement 'inode' command
Carlos Maiolino
cmaiolino at redhat.com
Fri Sep 25 08:07:44 CDT 2015
Implements a new xfs_io cmmand, named 'inode', which is supposed to be used to
query information about inode's existence and its physical size in the
filesystem.
Currently supporting three arguments:
-s -- return physical size of the largest inode
-l -- return the largest inode number allocated and used
-n [num] -- Return the next existing inode after [num], even if [num] is not
allocated/used
[num] -- Return if the inode exists or not.
I decided to split the implementation in three patches because I thought this
would be easier for review and understand the logic of each argument, mainly
regarding the '-n [num] / [num]' implementation where I'm not sure if I handled
it in a good way.
I also didn't send the man page patch because I'm sure I'll get some points to
improve, and I'll write the manpage for the next revision.
Carlos Maiolino (3):
xfs_io: Add inode '-s' command to query physical size of largest inode
xfs_io: add inode -l argument to return largest inode number
xfs_io: implement inode '-n' and [num] argument
io/open.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 153 insertions(+)
--
2.4.3
More information about the xfs
mailing list