All of lore.kernel.org
 help / color / mirror / Atom feed
* Can lgetxattr legally return ENODATA?
@ 2012-04-13 23:06 A. James Lewis
  0 siblings, 0 replies; only message in thread
From: A. James Lewis @ 2012-04-13 23:06 UTC (permalink / raw)
  To: linux-btrfs


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Please excuse my ignorance here, but I wondered if this could be a BTRFS
related issue... and perhaps one which might not often be spotted if it is.

A friend of mine has been having trouble with a backup application on a
BTRFS filesystem, and recently sent me this, which made me think that
there might be an edge case where something weird is happening:-

> Not sure if your interested but I thought I'd get my hands dirty and
try and figure this boxbackup problem out. stracing the problem gave me
this as the cause:
>
> lgetxattr("/srv/WWW/Stuff/includes/CI-application/views/objects/items",
"system.posix_acl_default", 0x0, 0) = -1 ENODATA (No data available)
>
> I looked up the call here:
> http://linux.die.net/man/2/lgetxattr
>
> But unfortunately it doesn't have the ENODATA error listed
> (its not on the stat page it refers to either)
>
> Boxbackup assumes it can only be caused by a file permissions problem
and so gives that error I had, but the fact that a folder next to it
with identical permissions is fine is odd.
>
> In the end I copied all the files out with SAMBA, deleted them on the
BTRFS volume and put them back in again. After setting the permissions
the same as they were before and restarting boxbackup the problem vanished.

- -- 
A. James Lewis (james@fsck.co.uk)
Engineering does not require science. Science helps a lot but people
built perfectly good brick walls long before they knew why cement works.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk+IsT0ACgkQ1OQXXvP2GMFl4wCbB+bcK5gtkgOhHXYsOV2DV7wG
RWgAnj+6rX3RogB8gopEkxhV4EVlaxaZ
=o9Xj
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-13 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13 23:06 Can lgetxattr legally return ENODATA? A. James Lewis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.