While NS_ERROR_FILE_CORRUPTED already exists, it indicates most of the times more a parsing problem of a given file format. But Windows ERROR_FILE_CORRUPTED signals a malfunctioning or corrupted file system at OS level, thus we translate it to the new NS_ERROR_FILESYSTEM_CORRUPTED. There seems to be no suitable errno under POSIX to map here.
Bug 1690326 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
While NS_ERROR_FILE_CORRUPTED already exists, it indicates most of the times more a parsing problem of a given file format. But Windows ERROR_FILE_CORRUPTED signals a malfunctioning or corrupted file system at OS level, thus we translate it to the new NS_ERROR_FILE_FS_CORRUPTED. There seems to be no suitable errno under POSIX to map here.