xfs
[Top] [All Lists]

dmapi attributes question

To: linux-xfs@xxxxxxxxxxx
Subject: dmapi attributes question
From: John Groves <John@xxxxxxxxxx>
Date: Sun, 27 Mar 2005 12:00:51 -0600
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

When I set an attribute via dmapi, I haven't figured out how to retrieve it with attr or getfattr. "getfattr -d" shows nothing unless there were attributes that I set via attr or setfattr (which show up as user attributes, even if set by root; I get an error if I put a '$' in front of the name, which I thought was the way to designate a root attribute).


I can retrieve the dmapi attributes via dmapi, however, so I know they're there. I'm using the latest CVS 2.4 kernel and xfs-cmds code (as of last week some time, that is).

I don't think I fully understand attribute namespaces. I would expect the dmapi attributes to be in root space, I suppose (in part because I can't see them in the user namespace). The attr man page says use the "-R" arg to access root attributes, but I get this message: "attr_get: Operation not supported". The man page for getfattr doesn't mention root space attributes at all.

I can certainly just do my own little dmapi attribute retrieval program that uses dmapi to get attributes, but I would like to understand where dmapi attributes reside.

Thanks for any enlightenment,
John Groves


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