public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 V2] xfs_io: implement 'inode' command
@ 2015-09-25 13:07 Carlos Maiolino
  2015-09-25 13:07 ` [PATCH 1/3] xfs_io: Add inode '-s' command to query physical size of largest inode Carlos Maiolino
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Carlos Maiolino @ 2015-09-25 13:07 UTC (permalink / raw)
  To: xfs

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

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-10-09 13:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-25 13:07 [PATCH 0/3 V2] xfs_io: implement 'inode' command Carlos Maiolino
2015-09-25 13:07 ` [PATCH 1/3] xfs_io: Add inode '-s' command to query physical size of largest inode Carlos Maiolino
2015-09-25 13:12   ` Carlos Maiolino
2015-10-06 17:00   ` Brian Foster
2015-09-25 13:07 ` [PATCH 2/3] xfs_io: add inode -l argument to return largest inode number Carlos Maiolino
2015-10-06 17:00   ` Brian Foster
2015-10-07  8:06     ` Carlos Maiolino
2015-09-25 13:07 ` [PATCH 3/3] xfs_io: implement inode '-n' and [num] argument Carlos Maiolino
2015-10-06 17:00   ` Brian Foster
2015-10-09  8:33     ` Carlos Maiolino
2015-10-09 12:36       ` Brian Foster
2015-10-09 13:25         ` Carlos Maiolino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox