#[non_exhaustive]#[repr(u32)]pub enum Error {
Show 80 variants
AlreadyLocked = 1,
Decompression = 2,
Fuse = 6,
GlobHadNoMatches = 8,
ImageCount = 10,
ImageNameCollision = 11,
InsufficientPrivileges = 12,
Integrity = 13,
InvalidCaptureConfig = 14,
InvalidChunkSize = 15,
InvalidCompressionType = 16,
InvalidHeader = 17,
InvalidImage = 18,
InvalidIntegrityTable = 19,
InvalidLookupTableEntry = 20,
InvalidMetadataResource = 21,
InvalidOverlay = 23,
InvalidParam = 24,
InvalidPartNumber = 25,
InvalidPipableWim = 26,
InvalidReparseData = 27,
InvalidResourceHash = 28,
InvalidUtf8String = 31,
InvalidUtf16String = 30,
IsDirectory = 32,
IsSplitWim = 33,
Link = 35,
MetadataNotFound = 36,
Mkdir = 37,
Mqueue = 38,
Nomem = 39,
Notdir = 40,
Notempty = 41,
NotARegularFile = 42,
NotAWimFile = 43,
NoFilename = 45,
NotPipable = 44,
Open = 47,
Opendir = 48,
PathDoesNotExist = 49,
Read = 50,
Readlink = 51,
Rename = 52,
ReparsePointFixupFailed = 54,
ResourceNotFound = 55,
ResourceOrder = 56,
SetAttributes = 57,
SetReparseData = 58,
SetSecurity = 59,
SetShortName = 60,
SetTimestamps = 61,
SplitInvalid = 62,
Stat = 63,
UnexpectedEndOfFile = 65,
UnicodeStringNotRepresentable = 66,
UnknownVersion = 67,
Unsupported = 68,
UnsupportedFile = 69,
WimIsReadonly = 71,
Write = 72,
Xml = 73,
WimIsEncrypted = 74,
Wimboot = 75,
AbortedByProgress = 76,
UnknownProgressStatus = 77,
Mknod = 78,
MountedImageIsBusy = 79,
NotAMountpoint = 80,
NotPermittedToUnmount = 81,
FveLockedVolume = 82,
UnableToReadCaptureConfig = 83,
WimIsIncomplete = 84,
CompactionNotPossible = 85,
ImageHasMultipleReferences = 86,
DuplicateExportedImage = 87,
ConcurrentModificationDetected = 88,
SnapshotFailure = 89,
InvalidXattr = 90,
SetXattr = 91,
Ntfs3G = 46,
}
Expand description
Possible values of the error code returned by many functions in wimlib
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlreadyLocked = 1
The WIM is already locked for writing
Decompression = 2
The WIM contains invalid compressed data
Fuse = 6
An error was returned by fuse_main
GlobHadNoMatches = 8
The provided file glob did not match any files
ImageCount = 10
Inconsistent image count among the metadata resources, the WIM header, and/or the XML data
ImageNameCollision = 11
Tried to add an image with a name that is already in use
InsufficientPrivileges = 12
The user does not have sufficient privileges
Integrity = 13
The WIM file is corrupted (failed integrity check)
InvalidCaptureConfig = 14
The contents of the capture configuration file were invalid
InvalidChunkSize = 15
The compression chunk size was unrecognized
InvalidCompressionType = 16
The compression type was unrecognized
InvalidHeader = 17
The WIM header was invalid
InvalidImage = 18
Tried to select an image that does not exist in the WIM
InvalidIntegrityTable = 19
The WIM’s integrity table is invalid
InvalidLookupTableEntry = 20
An entry in the WIM’s lookup table is invalid
InvalidMetadataResource = 21
The metadata resource is invalid
InvalidOverlay = 23
Conflicting files in overlay when creating a WIM image
InvalidParam = 24
An invalid parameter was given
InvalidPartNumber = 25
The part number or total parts of the WIM is invalid
InvalidPipableWim = 26
The pipable WIM is invalid
InvalidReparseData = 27
The reparse data of a reparse point was invalid
InvalidResourceHash = 28
The SHA-1 message digest of a WIM resource did not match the expected value
InvalidUtf8String = 31
A string was not a valid UTF-8 string
InvalidUtf16String = 30
A string was not a valid UTF-16 string
IsDirectory = 32
One of the specified paths to delete was a directory
IsSplitWim = 33
The WIM is part of a split WIM, which is not supported for this operation
Link = 35
Failed to create a hard or symbolic link when extracting a file from the WIM
MetadataNotFound = 36
The WIM does not contain image metadata; it only contains file data
Mkdir = 37
Failed to create a directory
Mqueue = 38
Failed to create or use a POSIX message queue
Nomem = 39
Ran out of memory
Notdir = 40
Expected a directory
Notempty = 41
Directory was not empty
NotARegularFile = 42
One of the specified paths to extract did not correspond to a regular file
NotAWimFile = 43
The file did not begin with the magic characters that identify a WIM file
NoFilename = 45
The WIM is not identified with a filename
NotPipable = 44
The WIM was not captured such that it can be applied from a pipe
Open = 47
Failed to open a file
Opendir = 48
Failed to open a directory
PathDoesNotExist = 49
The path does not exist in the WIM image
Read = 50
Could not read data from a file
Readlink = 51
Could not read the target of a symbolic link
Rename = 52
Could not rename a file
ReparsePointFixupFailed = 54
Unable to complete reparse point fixup
ResourceNotFound = 55
A file resource needed to complete the operation was missing from the WIM
ResourceOrder = 56
The components of the WIM were arranged in an unexpected order
SetAttributes = 57
Failed to set attributes on extracted file
SetReparseData = 58
Failed to set reparse data on extracted file
SetSecurity = 59
Failed to set file owner, group, or other permissions on extracted file
SetShortName = 60
Failed to set short name on extracted file
SetTimestamps = 61
Failed to set timestamps on extracted file
SplitInvalid = 62
The WIM is part of an invalid split WIM
Stat = 63
Could not read the metadata for a file or directory
UnexpectedEndOfFile = 65
Unexpectedly reached the end of the file
UnicodeStringNotRepresentable = 66
A Unicode string could not be represented in the current locale’s encoding
UnknownVersion = 67
The WIM file is marked with an unknown version number
Unsupported = 68
The requested operation is unsupported
UnsupportedFile = 69
A file in the directory tree to archive was not of a supported type
WimIsReadonly = 71
The WIM is read-only (file permissions, header flag, or split WIM)
Write = 72
Failed to write data to a file
Xml = 73
The XML data of the WIM is invalid
WimIsEncrypted = 74
The WIM file (or parts of it) is encrypted
Wimboot = 75
Failed to set WIMBoot pointer data
AbortedByProgress = 76
The operation was aborted by the library user
UnknownProgressStatus = 77
The user-provided progress function returned an unrecognized value
Mknod = 78
Unable to create a special file (e.g. device node or socket)
MountedImageIsBusy = 79
There are still files open on the mounted WIM image
NotAMountpoint = 80
There is not a WIM image mounted on the directory
NotPermittedToUnmount = 81
The current user does not have permission to unmount the WIM image
FveLockedVolume = 82
The volume must be unlocked before it can be used
UnableToReadCaptureConfig = 83
The capture configuration file could not be read
WimIsIncomplete = 84
The WIM file is incomplete
CompactionNotPossible = 85
The WIM file cannot be compacted because of its format, its layout, or the write parameters specified by the user
ImageHasMultipleReferences = 86
The WIM image cannot be modified because it is currently referenced from multiple places
DuplicateExportedImage = 87
The destination WIM already contains one of the source images
ConcurrentModificationDetected = 88
A file being added to a WIM image was concurrently modified
SnapshotFailure = 89
Unable to create a filesystem snapshot
InvalidXattr = 90
An extended attribute entry in the WIM image is invalid
SetXattr = 91
Failed to set an extended attribute on an extracted file
Ntfs3G = 46
NTFS-3G encountered an error (check errno)