Print this page
FAR: generating send-streams in portable format
This commit adds a switch '-F' to  zfs send. This set, zfs send generates
a stream in FAR-format instead of the traditional zfs stream format. The
generated send stream is compatible with the stream generated from 'btrfs send'
and can in principle easily be received to any filesystem.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dsl_dataset.c
          +++ new/usr/src/uts/common/fs/zfs/dsl_dataset.c
↓ open down ↓ 672 lines elided ↑ open up ↑
 673  673                                  mutex_enter(&ds->ds_lock);
 674  674                                  (void) strcat(name, ds->ds_snapname);
 675  675                                  mutex_exit(&ds->ds_lock);
 676  676                          } else {
 677  677                                  (void) strcat(name, ds->ds_snapname);
 678  678                          }
 679  679                  }
 680  680          }
 681  681  }
 682  682  
 683      -static int
      683 +int
 684  684  dsl_dataset_namelen(dsl_dataset_t *ds)
 685  685  {
 686  686          int result;
 687  687  
 688  688          if (ds == NULL) {
 689  689                  result = 3;     /* "mos" */
 690  690          } else {
 691  691                  result = dsl_dir_namelen(ds->ds_dir);
 692  692                  VERIFY(0 == dsl_dataset_get_snapname(ds));
 693  693                  if (ds->ds_snapname[0]) {
↓ open down ↓ 3600 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX