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