Print this page
3741 zfs needs better comments
Submitted by:   Will Andrews <willa@spectralogic.com>
Submitted by:   Justin Gibbs <justing@spectralogic.com>
Submitted by:   Alan Somers <alans@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/vdev_label.c
          +++ new/usr/src/uts/common/fs/zfs/vdev_label.c
↓ open down ↓ 1020 lines elided ↑ open up ↑
1021 1021  
1022 1022          for (int l = 0; l < VDEV_LABELS; l++)
1023 1023                  vdev_label_write(zio, vd, l, ubbuf,
1024 1024                      VDEV_UBERBLOCK_OFFSET(vd, n), VDEV_UBERBLOCK_SIZE(vd),
1025 1025                      vdev_uberblock_sync_done, zio->io_private,
1026 1026                      flags | ZIO_FLAG_DONT_PROPAGATE);
1027 1027  
1028 1028          zio_buf_free(ubbuf, VDEV_UBERBLOCK_SIZE(vd));
1029 1029  }
1030 1030  
     1031 +/* Sync the uberblocks to all vdevs in svd[] */
1031 1032  int
1032 1033  vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags)
1033 1034  {
1034 1035          spa_t *spa = svd[0]->vdev_spa;
1035 1036          zio_t *zio;
1036 1037          uint64_t good_writes = 0;
1037 1038  
1038 1039          zio = zio_root(spa, NULL, &good_writes, flags);
1039 1040  
1040 1041          for (int v = 0; v < svdcount; v++)
↓ open down ↓ 246 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX