aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-02 22:12:13 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-05-03 07:06:01 +0000
commited1fafc9bcb5f06d6bfd1c71f52c54a7e5dacb27 (patch)
tree34487fa4aed5e208e0d2be78f0e6231adb730532
parent60b2c29e48e476a16271f5eb22cbf1d10d5e8f7b (diff)
sys/linux: add bcachefs descriptions
-rw-r--r--pkg/vminfo/linux_test.go2
-rw-r--r--sys/linux/filesystem.txt14
2 files changed, 15 insertions, 1 deletions
diff --git a/pkg/vminfo/linux_test.go b/pkg/vminfo/linux_test.go
index 56fea06fb..63a352924 100644
--- a/pkg/vminfo/linux_test.go
+++ b/pkg/vminfo/linux_test.go
@@ -33,7 +33,7 @@ func TestLinuxSyscalls(t *testing.T) {
"ntfs", "ntfs3", "hfsplus", "bfs", "exfat", "affs", "jffs2",
"ext4", "gfs2", "msdos", "v7", "gfs2meta", "zonefs", "omfs",
"minix", "adfs", "ufs", "sysv", "reiserfs", "ocfs2", "nilfs2",
- "iso9660", "hpfs", "binder", "",
+ "iso9660", "hpfs", "binder", "bcachefs", "",
}
files := []host.FileInfo{
{
diff --git a/sys/linux/filesystem.txt b/sys/linux/filesystem.txt
index b2f7f3d5a..0deb64454 100644
--- a/sys/linux/filesystem.txt
+++ b/sys/linux/filesystem.txt
@@ -133,6 +133,7 @@ syz_mount_image$jffs2(fs ptr[in, string["jffs2"]], dir ptr[in, filename], flags
syz_mount_image$nilfs2(fs ptr[in, string["nilfs2"]], dir ptr[in, filename], flags flags[mount_flags], opts ptr[in, fs_options[nilfs2_options]], chdir bool8, size len[img], img ptr[in, compressed_image]) fd_dir (timeout[SYZ_MOUNT_IMAGE_TIMEOUT], no_generate, no_minimize)
syz_mount_image$squashfs(fs ptr[in, string["squashfs"]], dir ptr[in, filename], flags flags[mount_flags], opts ptr[in, fs_options[stringnoz]], chdir bool8, size len[img], img ptr[in, compressed_image]) fd_dir (timeout[SYZ_MOUNT_IMAGE_TIMEOUT], no_generate, no_minimize)
syz_mount_image$udf(fs ptr[in, string["udf"]], dir ptr[in, filename], flags flags[mount_flags], opts ptr[in, fs_options[udf_options]], chdir bool8, size len[img], img ptr[in, compressed_image]) fd_dir (timeout[SYZ_MOUNT_IMAGE_TIMEOUT], no_generate, no_minimize)
+syz_mount_image$bcachefs(fs ptr[in, string["bcachefs"]], dir ptr[in, filename], flags flags[mount_flags], opts ptr[in, fs_options[bcachefs_options]], chdir bool8, size len[img], img ptr[in, compressed_image]) fd_dir (timeout[SYZ_MOUNT_IMAGE_TIMEOUT], no_generate, no_minimize)
# TODO: zonefs needs a zoned block device:
# https://elixir.bootlin.com/linux/v6.1-rc6/source/fs/zonefs/super.c#L1768
@@ -966,6 +967,19 @@ esdfs_options [
esdfs_derive = "none", "legacy", "unified", "multi", "public"
+bcachefs_options [
+ metadata_checksum fs_opt["metadata_checksum", stringnoz[bcachefs_checksum]]
+ data_checksum fs_opt["data_checksum", stringnoz[bcachefs_checksum]]
+ compression fs_opt["compression", stringnoz[bcachefs_compression]]
+ background_compression fs_opt["background_compression", stringnoz[bcachefs_compression]]
+ str_hash fs_opt["str_hash", stringnoz[bcachefs_str_hash]]
+ nocow stringnoz["nocow"]
+] [varlen]
+
+bcachefs_checksum = "none", "crc32c", "crc64", "xxhash"
+bcachefs_compression = "none", "lz4", "gzip", "zstd"
+bcachefs_str_hash = "crc32c", "crc64", "siphash"
+
cgroup_options [
all stringnoz["all"]
clone_children stringnoz["clone_children"]