WIMLIB_ERR_MOUNTED_IMAGE_IS_BUSY = 79,
WIMLIB_ERR_NOT_A_MOUNTPOINT = 80,
WIMLIB_ERR_NOT_PERMITTED_TO_UNMOUNT = 81,
+ WIMLIB_ERR_FVE_LOCKED_VOLUME = 82,
};
* be rolled back, and no visible changes shall have been made to @p wim.
* Possible error codes include:
*
+ * @retval ::WIMLIB_ERR_FVE_LOCKED_VOLUME
+ * Windows-only: One of the "add" commands attempted to add files from an
+ * encrypted BitLocker volume that hasn't yet been unlocked.
* @retval ::WIMLIB_ERR_INVALID_CAPTURE_CONFIG
* The capture configuration structure specified for an add command was
* invalid.
= T("There is not a WIM image mounted on the directory"),
[WIMLIB_ERR_NOT_PERMITTED_TO_UNMOUNT]
= T("The current user does not have permission to unmount the WIM image"),
+ [WIMLIB_ERR_FVE_LOCKED_VOLUME]
+ = T("The volume must be unlocked before it can be used"),
};
/* API function documented in wimlib.h */
ERROR_WITH_ERRNO("\"%ls\": Can't open file "
"(status=0x%08"PRIx32")",
printable_path(full_path), (u32)status);
- ret = WIMLIB_ERR_OPEN;
+ if (status == STATUS_FVE_LOCKED_VOLUME)
+ ret = WIMLIB_ERR_FVE_LOCKED_VOLUME;
+ else
+ ret = WIMLIB_ERR_OPEN;
}
/* XXX: Provide option to exclude files that fail with
* STATUS_SHARING_VIOLATION? */