[Ocfs2-tools-devel] [PATCH 7/9] ocfs2-tools: add xattr support in debugfs.ocfs2
Joel Becker
Joel.Becker at oracle.com
Fri Dec 19 14:42:35 PST 2008
On Fri, Dec 19, 2008 at 05:41:50PM +0800, Tiger Yang wrote:
> This patch add showing xattrs which setted in a file in debugfs.ocfs2.
> The new command "xattr [-v] <filespec>" in debugfs.ocfs2 could show
> xattrs in inode, block or buckets in summary or in verbose mode.
In this patch, debugfs uses low-level access to walk the xattr
disk structures. I think this is a good thing, because debugfs exists
to walk and display the low-level.
I wish that it accessed buckets via a bucket API, but we'll do
that later.
Also later, I'd like to see "xattr-list" and "xattr-get"
commands added. Once libocfs2 has ocfs2_xattr_get() and
ocfs2_xattr_list(), these commands would perform that action. Thus, the
"xattrs" commands dumps all the xattr names including the disk offset
printing, while "xattr-list" would list the names via the API and would
not display the disk structures.
But that's all for after we land this series.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
--
"I'm living so far beyond my income that we may almost be said
to be living apart."
- e e cummings
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list