[ \fB\-K\fP ]
[ \fB\-h\fP ]
[ \fB\-V\fP ]
-[ \fB\-x\fP\fI skinny-extents\fP ]
\fI device\fP [ \fIdevice ...\fP ]
.SH DESCRIPTION
.B mkfs.btrfs
.TP
\fB\-V\fR, \fB\-\-version\fR
Print the \fBmkfs.btrfs\fP version and exit.
-.TP
-\fB\-x\fR, \fB\-\-skinny\-extents\fR
-Use the new skinny extents disk format. This is an non-backwards compatible
-format change. This allows btrfs to use a smaller item for describing
-metadata blocks in the extent tree. This results in a 30% savings in the
-extent tree size, which improves performance on file systems with lots of
-metadata.
.SH UNIT
As default the unit is the byte, however it is possible to append a suffix
to the arguments like \fBk\fP for KBytes, \fBm\fP for MBytes...
fprintf(stderr, "\t -r --rootdir the source directory\n");
fprintf(stderr, "\t -K --nodiscard do not perform whole device TRIM\n");
fprintf(stderr, "\t -V --version print the mkfs.btrfs version and exit\n");
- fprintf(stderr, "\t -x --skinny-extents use the new skinny extent disk format");
fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
exit(1);
}
{ "version", 0, NULL, 'V' },
{ "rootdir", 1, NULL, 'r' },
{ "nodiscard", 0, NULL, 'K' },
- { "skinny-extents", 0, NULL, 'x'},
{ 0, 0, 0, 0}
};
int nodiscard = 0;
int ssd = 0;
int force_overwrite = 0;
- int skinny_meta_extents = 0;
char *source_dir = NULL;
int source_dir_set = 0;
while(1) {
int c;
- c = getopt_long(ac, av, "A:b:fl:n:s:m:d:L:r:VMKx",
+ c = getopt_long(ac, av, "A:b:fl:n:s:m:d:L:r:VMK",
long_options, &option_index);
if (c < 0)
break;
case 'K':
nodiscard=1;
break;
- case 'x':
- skinny_meta_extents = 1;
- break;
default:
print_usage();
}
if (mixed)
flags |= BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS;
- if (skinny_meta_extents)
- flags |= BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA;
-
btrfs_set_super_incompat_flags(super, flags);
if ((data_profile | metadata_profile) &