summaryrefslogtreecommitdiff
path: root/fs/zfs/dev.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-04-17 10:08:03 -0600
committerTom Rini <trini@konsulko.com>2024-04-17 10:08:59 -0600
commit198f33a2ebdc0039d3b0a521e83a75496aadde82 (patch)
tree779998a47c6e62ea1d9245ea429ff7f7c308de8a /fs/zfs/dev.c
parentbeac9581531d7882df8c1de653db18fb3ab4100a (diff)
parent730c69f133edf8a38c9479e116dbd944ebb2cb6c (diff)
Merge patch series "zfs: Fix zfs support on aarch64"
mwleeds@mailtundra.com <mwleeds@mailtundra.com> says: This patch series is needed to get U-Boot to boot from a ZFS filesystem on an aarch64 computer. Some of the patches are not architecture specific and would be needed to boot ZFS on other platforms as well. The ZFS support in U-Boot hasn't been substantively touched in several years and to me it seems like it must have been broken for a long time on all platforms, but I have only tested on aarch64. Since there doesn't seem to be a mantainer for this area who I can cc, I'm hoping these patches get seen and pulled in by a general U-Boot maintainer. [trini: Per Igor's comment and Phaedrus agreement, dropped his Tested-by on the patches themselves]
Diffstat (limited to 'fs/zfs/dev.c')
-rw-r--r--fs/zfs/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zfs/dev.c b/fs/zfs/dev.c
index 251e7d1f74f..fcd9893b3ac 100644
--- a/fs/zfs/dev.c
+++ b/fs/zfs/dev.c
@@ -26,5 +26,5 @@ void zfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
int zfs_devread(int sector, int byte_offset, int byte_len, char *buf)
{
return fs_devread(zfs_blk_desc, part_info, sector, byte_offset,
- byte_len, buf);
+ byte_len, buf) ? 0 : 1;
}