tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ffsv2 extattr support



Hi,

one point for man 1 getextattr and against me:

The abort on the first file without attributes could be a feature,
if one is willing to count a non-existing requested attribute as
an error.
Option -f overrides this early abort. So my change proposal about
line 376 is not needed. (It was not complete anyway.)

-----------------------------------------------------------------

One could discuss whether a missing attribute is really an error.
Linux, which has more experience with using xattr, only issues
warnings but does not indicate error:

  $ getfattr -n user.uerg x x
  x: user.uerg: No such attribute
  y: user.uerg: No such attribute
  $ echo $?
  0

In contrast to a missing file:

  $ getfattr -n user.uerg xyz x
  getfattr: xyz: No such file or directory
  x: user.uerg: No such attribute
  $ echo $?
  1


Have a nice day :)

Thomas



Home | Main Index | Thread Index | Old Index