Home
last modified time | relevance | path

Searched refs:vdev_label_t (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dvdev_impl.h43 offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(sh)])
57 } vdev_label_t; /* 256K total */ typedef
63 #define VDEV_BOOT_OFFSET (2 * sizeof (vdev_label_t))
69 #define VDEV_LABEL_START_SIZE (2 * sizeof (vdev_label_t) + VDEV_BOOT_SIZE)
70 #define VDEV_LABEL_END_SIZE (2 * sizeof (vdev_label_t))
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h243 offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(vd)])
256 } vdev_label_t; /* 256K total */ typedef
265 #define VDEV_BOOT_OFFSET (2 * sizeof (vdev_label_t))
275 #define VDEV_LABEL_START_SIZE (2 * sizeof (vdev_label_t) + VDEV_BOOT_SIZE)
276 #define VDEV_LABEL_END_SIZE (2 * sizeof (vdev_label_t))
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dvdev_label.c158 ASSERT(offset < sizeof (vdev_label_t)); in vdev_label_offset()
159 ASSERT(P2PHASE_TYPED(psize, sizeof (vdev_label_t), uint64_t) == 0); in vdev_label_offset()
161 return (offset + l * sizeof (vdev_label_t) + (l < VDEV_LABELS / 2 ? in vdev_label_offset()
162 0 : psize - VDEV_LABELS * sizeof (vdev_label_t))); in vdev_label_offset()
175 offset += (VDEV_LABELS / 2) * sizeof (vdev_label_t); in vdev_label_number()
177 l = offset / sizeof (vdev_label_t); in vdev_label_number()
459 offsetof(vdev_label_t, vl_vdev_phys), in vdev_label_read_config()
800 offsetof(vdev_label_t, vl_vdev_phys), in vdev_label_init()
809 offsetof(vdev_label_t, vl_pad2), in vdev_label_init()
813 offsetof(vdev_label_t, vl_uberblock), in vdev_label_init()
[all …]
H A Dvdev_disk.c872 vdev_label_t *label; in vdev_disk_read_rootlabel()
899 size = P2ALIGN_TYPED(s, sizeof (vdev_label_t), uint64_t); in vdev_disk_read_rootlabel()
900 label = kmem_alloc(sizeof (vdev_label_t), KM_SLEEP); in vdev_disk_read_rootlabel()
935 kmem_free(label, sizeof (vdev_label_t)); in vdev_disk_read_rootlabel()
H A Dvdev.c1068 offsetof(vdev_label_t, vl_pad2)), in vdev_probe()
1228 osize = P2ALIGN(osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open()
1229 max_osize = P2ALIGN(max_osize, (uint64_t)sizeof (vdev_label_t)); in vdev_open()
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c857 ASSERT(P2PHASE_TYPED(size, sizeof (vdev_label_t), uint64_t) == 0); in label_offset()
858 return (l * sizeof (vdev_label_t) + (l < VDEV_LABELS / 2 ? in label_offset()
859 0 : size - VDEV_LABELS * sizeof (vdev_label_t))); in label_offset()
871 vdev_label_t *label; in zpool_read_label()
878 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_read_label()
880 if ((label = malloc(sizeof (vdev_label_t))) == NULL) in zpool_read_label()
884 if (pread64(fd, label, sizeof (vdev_label_t), in zpool_read_label()
885 label_offset(size, l)) != sizeof (vdev_label_t)) in zpool_read_label()
1096 vdev_label_t *label; in zpool_clear_label()
1101 size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t); in zpool_clear_label()
[all …]
/titanic_41/usr/src/cmd/zinject/
H A Dtranslate.c492 record->zi_start = offsetof(vdev_label_t, vl_uberblock[0]); in translate_device()
496 record->zi_start = offsetof(vdev_label_t, vl_vdev_phys); in translate_device()
500 record->zi_start = offsetof(vdev_label_t, vl_pad1); in translate_device()
504 record->zi_start = offsetof(vdev_label_t, vl_pad2); in translate_device()
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c205 return (l * sizeof (vdev_label_t) + (l < VDEV_LABELS / 2 ? in vdev_label_start()
206 0 : psize - VDEV_LABELS * sizeof (vdev_label_t))); in vdev_label_start()
1642 adjpl = P2ALIGN(adjpl, (uint64_t)sizeof (vdev_label_t)); in zfs_mount()
/titanic_41/usr/src/cmd/zdb/
H A Dzdb.c2100 dump_label_uberblocks(vdev_label_t *lbl, uint64_t ashift) in dump_label_uberblocks()
2125 vdev_label_t label; in dump_label()
2163 psize = P2ALIGN(psize, (uint64_t)sizeof (vdev_label_t)); in dump_label()