Gordan Bobic
2014-02-20 12:53:29 UTC
I _think_ this does that, but please review and treat with caution until
somebody with more knowledge of ZFS internals says it's OK.
--- src/lib/libzpool/vdev_label.c.orig 2014-02-20 12:02:29.306170588
+0000
+++ src/lib/libzpool/vdev_label.c 2014-02-20 12:02:44.646155572 +0000
@@ -277,7 +277,7 @@
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_METASLAB_SHIFT,
vd->vdev_ms_shift) == 0);
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_ASHIFT,
- vd->vdev_ashift) == 0);
+ 12) == 0);
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_ASIZE,
vd->vdev_asize) == 0);
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_IS_LOG,
According to zdb to pool I created with this patch does show up as
ashift=12.
Gordan
somebody with more knowledge of ZFS internals says it's OK.
--- src/lib/libzpool/vdev_label.c.orig 2014-02-20 12:02:29.306170588
+0000
+++ src/lib/libzpool/vdev_label.c 2014-02-20 12:02:44.646155572 +0000
@@ -277,7 +277,7 @@
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_METASLAB_SHIFT,
vd->vdev_ms_shift) == 0);
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_ASHIFT,
- vd->vdev_ashift) == 0);
+ 12) == 0);
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_ASIZE,
vd->vdev_asize) == 0);
VERIFY(nvlist_add_uint64(nv, ZPOOL_CONFIG_IS_LOG,
According to zdb to pool I created with this patch does show up as
ashift=12.
Gordan
--
--
To post to this group, send email to zfs-fuse-/***@public.gmane.org
To visit our Web site, click on http://zfs-fuse.net/
---
You received this message because you are subscribed to the Google Groups "zfs-fuse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zfs-fuse+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
--
To post to this group, send email to zfs-fuse-/***@public.gmane.org
To visit our Web site, click on http://zfs-fuse.net/
---
You received this message because you are subscribed to the Google Groups "zfs-fuse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zfs-fuse+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.