summaryrefslogtreecommitdiff
path: root/lib/fdt.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2018-05-16 21:13:34 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2018-05-16 21:13:34 +0300
commitec601924df0f8fc4f66ac04eaa6bccde87b2f569 (patch)
treed76095559d4e0ed673eaee92e9b9da096e5a774f /lib/fdt.c
parentf7664b31975bd893190708e76b2c424328f0c49b (diff)
downloadlinux-ec601924df0f8fc4f66ac04eaa6bccde87b2f569.tar.xz
iomap: provide more useful errors for invalid swap files
Currently, for an invalid swap file, we print the same error message regardless of the reason. This isn't very useful for an admin, who will likely want to know why exactly they can't use their swap file. So, let's add specific error messages for each reason, and also move the bdev check after the flags checks, since the latter are more fundamental. Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'lib/fdt.c')
0 files changed, 0 insertions, 0 deletions