Add new error codes for xattr extraction errors
authorEric Biggers <ebiggers3@gmail.com>
Tue, 27 Dec 2016 23:24:55 +0000 (17:24 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 28 Dec 2016 04:30:51 +0000 (22:30 -0600)
include/wimlib.h
src/error.c

index ac55fd2..226c687 100644 (file)
@@ -2567,6 +2567,8 @@ enum wimlib_error_code {
        WIMLIB_ERR_DUPLICATE_EXPORTED_IMAGE           = 87,
        WIMLIB_ERR_CONCURRENT_MODIFICATION_DETECTED   = 88,
        WIMLIB_ERR_SNAPSHOT_FAILURE                   = 89,
+       WIMLIB_ERR_INVALID_XATTR                      = 90,
+       WIMLIB_ERR_SET_XATTR                          = 91,
 };
 
 
index 26fc10a..cccb815 100644 (file)
@@ -342,6 +342,10 @@ static const tchar * const error_strings[] = {
                = T("A file being added to a WIM image was concurrently modified"),
        [WIMLIB_ERR_SNAPSHOT_FAILURE]
                = T("Unable to create a filesystem snapshot"),
+       [WIMLIB_ERR_INVALID_XATTR]
+               = T("An extended attribute entry in the WIM image is invalid"),
+       [WIMLIB_ERR_SET_XATTR]
+               = T("Failed to set an extended attribute on an extracted file"),
 #ifdef ENABLE_TEST_SUPPORT
        [WIMLIB_ERR_IMAGES_ARE_DIFFERENT]
                = T("A difference was detected between the two images being compared"),