help needed with zfs zol large_dnode feature
hi!
Since I do not have grub build setup/linux, I’m looking for help to verify the patch build and testing for zol large_dnode feature support. The patch is attached.
thanks,
toomas
From 6e54750c2f6fc37e072849e954eb7ca95c077956 Mon Sep 17 00:00:00 2001
From: Toomas Soome <[email protected]>
Date: Fri, 15 Sep 2017 14:00:56 +0300
Subject: [PATCH] grub zfs reader should support large_dnode
--- grub-core/fs/zfs/zfs.c | 9 ++++---- include/grub/zfs/dnode.h | 54 +++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 52 insertions(+), 11 deletions(-)
grub-core/fs/zfs/zfs.c +5 -4
@@ -285,6 +285,7 @@ static const char *spa_feature_names[] = {"com.delphix:embedded_data" ,"com.delphix:extensible_dataset" ,"org.open-zfs:large_blocks" , +"org.zfsonlinux:large_dnode" , NULL };
@@ -2936,7 +2937,7 @@ dnode_get_path (struct subvolume *subvol, const char *path_in, dnode_end_t *dn, }else if (dnode_path->dn.dn.dn_flags &DNODE_FLAG_SPILL_BLKPTR ) { -blkptr_t *bp = &dnode_path->dn.dn.dn_spill; +blkptr_t *bp =DN_SPILL_BLKPTR (&dnode_path->dn.dn); err =zio_read (bp, dnode_path->dn.endian, &sahdrp,NULL , data);if (err)
@@ -3819,7 +3820,7 @@ grub_zfs_open (struct grub_file *file, const char *fsfilename) }else if (data->dnode.dn.dn_flags &DNODE_FLAG_SPILL_BLKPTR ) { -blkptr_t *bp = &data->dnode.dn.dn_spill; +blkptr_t *bp =DN_SPILL_BLKPTR (&data->dnode.dn); err =zio_read (bp, data->dnode.endian, &sahdrp,NULL , data);if (err)
@@ -4015,7 +4016,7 @@ fill_fs_info (struct grub_dirhook_info *info, }else if (dn.dn.dn_flags &DNODE_FLAG_SPILL_BLKPTR ) { -blkptr_t *bp = &dn.dn.dn_spill; +blkptr_t *bp =DN_SPILL_BLKPTR (&dn.dn); err =zio_read (bp, dn.endian, &sahdrp,NULL , data);if (err)
@@ -4068,7 +4069,7 @@ iterate_zap (const char *name, grub_uint64_t val, struct grub_zfs_dir_ctx *ctx) }else if (dn.dn.dn_flags &DNODE_FLAG_SPILL_BLKPTR ) { -blkptr_t *bp = &dn.dn.dn_spill; +blkptr_t *bp =DN_SPILL_BLKPTR (&dn.dn); err =zio_read (bp, dn.endian, &sahdrp,NULL , ctx->data);if (err)
include/grub/zfs/dnode.h +47 -7
72 lines not on this page · raw message
Signature · 1 line
2.13.5