sort: Add_priority_list() no longer needs to return error

The only possible failure in add_priority_list() was out of memory.
Now that this is handled by MEM_ERROR() we do not not need to return
any error status.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
sort: Generate_file_priorities() no longer needs to return error

Now that add_priority_list() does not return error there is no
need to return error status from generate_file_priorities().

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
xattrs: remove check for check_id_dupl() failure

Now MEM_ERROR deals with out of memory, check_id_dupl()
can no longer return failure.  Remove check for failure.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
xattrs: save_xattrs() no longer returns failure

Now MEM_ERROR deals with out of memory, save_xattrs()
no longer needs to return failure.  Remove failure return
and checks for failure.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: use MEM_ERROR() for out of space handling

Replace hand crafted ERROR() messages with dedicated
MEM_ERROR() macro.

In the process fix a one case where mem failure resulted in a
silent faulure.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: Add error message in scan_inode_table() if filesystem is corrupted

Add an error message if filesystem is corrupted.  Also rename the label
to corrupt, as it is now only use for those failures.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: remove ERROR message on scan_inode_table() failure

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: add ERROR message in read_super()

If read_fs_bytes() fails we should report we failed
to find the superblock, as is already done if we find
what we've read doesn't match a Squashfs superblock.

Also whilst doing this continue the practice of more understandable
user-orientated error messages such as "wrong filesystem or
coprrupted filesystem".

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: Add additional ERROR message to read_super()

Continue adding more understandable user-orientated error messages.

If we fail to read a Squashfs superblock then add the error
message  "wrong filesystem or corrupted filesystem".

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: We should print ERROR message if compression options reading fails

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Update Copyright

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Update copyright

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
mksquashfs: update date

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
compressor: update Copyright

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Update copyright date

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: add remaining missing ERRORs if read_block() returns failure

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: Don't report ERROR if squashfs_readdir returns failure

Squashfs_readdir() now reports ERROR, and so we don't need to do
it in the caller.  This brings squashfs_readdir() into line with
the other table reading routines which report ERROR.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
read_fs: add remaining missing ERRORs if read_fs_bytes() returns failure

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
mksquashfs: Add ERRORs if read_fs_bytes() fails in duplicate checking

Add some ERRORs if read_fs_bytes() fails when trying to read
back datablocks or fragments from the output filesystem when
checking for duplicates.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
mksquashfs: Add ERRORs for read_fs_bytes() failure in recovery file

If read_fs_bytes() fails in recovery file saving or restoring
then print an ERROR saying the filesystem is corrupted.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>