ls(1) new command line options '-/' and '-%': CIFS system attributes support [PSARC/2007/394 FastTrack timeout 07/11/2007]

Darren J Moffat Darren.Moffat at sun.com
Tue Jul 3 10:41:47 PDT 2007


Joerg Schilling wrote:
> Darren J Moffat <Darren.Moffat at sun.com> wrote:
> 
>>> Yes.  The project team chose not to do that because it could break
>>> scripts that are using ls to process ACLs.
>> Is the syntax of the -v an -V ACL display defined in PSARC/2006/043 
>> actually intended to be and given a taxonomy that allows for parsing ? 
>> That arc case doesn't actually say what stability the output has.
>>
>> Also given that it is really still quite new and currently only applies 
>> to ZFS and NFSv4 anyway (for -V) I think the risk of extending it is 
>> minimal and would be my preferred outcome.
>>
>> One has to know what the underlying filesystem actually is to know what 
>> output style you will get from -v and -V (UFS,TMPFS,NFSv3 will give very 
>> different output than NFSv4 and ZFS) means that parsing the output of 
>> ls(1) is very complex and IMO unlikely to be reliable anyway.
> 
> If I understand you correctly, you like to propose to add an optional argument
> to -V. This is something POSIX does not like.

No that is not what I'm proposing.  I'm proposing that the output of -V 
be changed to include information on extended attributes in addition to 
ACLs when they exist for files.  I'm suggesting that this is possible 
since I don't believe the output of -v and -V is really parsable anyway 
but I can't find an ARC case that states what the taxonomy of the output 
is (the options and what they do are Committed (nee Stable)).

-- 
Darren J Moffat



More information about the opensolaris-arc mailing list