]> arthur.barton.de Git - bup.git/commit
metadata: recover politely if xattr/acl support is missing.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Mar 2011 08:25:13 +0000 (01:25 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Mar 2011 09:41:44 +0000 (02:41 -0700)
commitf6ef623310f8d9412cd9ce2bed59b153d02c67be
tree3da4821c6cb566db81b95b7f6fd7ea33d0f31742
parentd146540eff876a68add79dd67c5d9c170231d728
metadata: recover politely if xattr/acl support is missing.

...previously we'd just crash, which is definitely not polite.

metadata.py now prints warning on import if these features are missing.
That's probably overly obnoxious, especially on systems that don't support
those types of metadata at all.  Is there a way to determine whether a
kernel *should* support that type of metadata, so we can warn only if so?

(Obviously if the kernel doesn't support, say, xattrs, there's no point
warning that bup doesn't support them, because no files will be using them
anyway.  Hmm...)

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/xstat-cmd.py
lib/bup/metadata.py
lib/bup/t/tmetadata.py