xref: /OK3568_Linux_fs/buildroot/fs/btrfs/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_BTRFS
2*4882a593Smuzhiyun	bool "btrfs root filesystem"
3*4882a593Smuzhiyun	select BR2_PACKAGE_HOST_BTRFS_PROGS
4*4882a593Smuzhiyun	help
5*4882a593Smuzhiyun	  Build a btrfs root filesystem. If you enable this option, you
6*4882a593Smuzhiyun	  probably want to enable the btrfs-progs package too.
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunif BR2_TARGET_ROOTFS_BTRFS
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_BTRFS_LABEL
11*4882a593Smuzhiyun	string "filesystem label"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_BTRFS_SIZE
14*4882a593Smuzhiyun	string "filesystem size"
15*4882a593Smuzhiyun	default "100m"
16*4882a593Smuzhiyun	help
17*4882a593Smuzhiyun	  The size of the filesystem image in bytes.
18*4882a593Smuzhiyun	  Suffix with k, m, g or t for power-of-two kilo-, mega-, giga-
19*4882a593Smuzhiyun	  or terabytes.
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_BTRFS_SIZE_SECTOR
22*4882a593Smuzhiyun	string "sector size"
23*4882a593Smuzhiyun	default "4096"
24*4882a593Smuzhiyun	help
25*4882a593Smuzhiyun	  This value should be set to the page size in bytes. The
26*4882a593Smuzhiyun	  default value of 4096 is the the most common page size for
27*4882a593Smuzhiyun	  most systems.  If the sectorsize differs from the page size,
28*4882a593Smuzhiyun	  the created filesystem may not be mountable by the kernel.
29*4882a593Smuzhiyun	  Therefore it is recommended to leave this value at
30*4882a593Smuzhiyun	  4096. Unless you know that your kernel uses a different page
31*4882a593Smuzhiyun	  size.  Suffix with k for power-of-two kilobytes.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_BTRFS_SIZE_NODE
34*4882a593Smuzhiyun	string "btree node size"
35*4882a593Smuzhiyun	default "16384"
36*4882a593Smuzhiyun	help
37*4882a593Smuzhiyun	  The tree block size in which btrfs stores metadata in bytes.
38*4882a593Smuzhiyun	  This must be a multiple of the sectorsize, but not larger
39*4882a593Smuzhiyun	  than 64KiB (65536).
40*4882a593Smuzhiyun	  Suffix with k for power-of-two kilobytes.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_BTRFS_FEATURES
43*4882a593Smuzhiyun	string "Filesystem Features"
44*4882a593Smuzhiyun	help
45*4882a593Smuzhiyun	  A comma separated string of features that can be enabled
46*4882a593Smuzhiyun	  during creation time.
47*4882a593Smuzhiyun	  For a list of available options, use:
48*4882a593Smuzhiyun	    `.../host/bin/mkfs.btrfs -O list-all`
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunendif # BR2_TARGET_ROOTFS_BTRFS
51