xfs
[Top] [All Lists]

[PATCH 0/3 V2] xfs_io: implement 'inode' command

To: xfs@xxxxxxxxxxx
Subject: [PATCH 0/3 V2] xfs_io: implement 'inode' command
From: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
Date: Fri, 25 Sep 2015 15:07:44 +0200
Delivered-to: xfs@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>