3 * based on code of fs/reiserfs/dev.c by
5 * (C) Copyright 2003 - 2004
6 * Sysgo AG, <www.elinos.com>, Pavel Bartusek <pba@sysgo.com>
8 * SPDX-License-Identifier: GPL-2.0+
14 #include <fs_internal.h>
15 #include <zfs_common.h>
17 static struct blk_desc *zfs_blk_desc;
18 static disk_partition_t *part_info;
20 void zfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
27 int zfs_devread(int sector, int byte_offset, int byte_len, char *buf)
29 return fs_devread(zfs_blk_desc, part_info, sector, byte_offset,