diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-12-31 11:59:09 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | b261c2a4f5f028c9d83cef208ccc7d829f841bad (patch) | |
tree | e5cd6b5705a8f7d99cc7f9dc7ec9d28035e6ef8f /lib/btrfsprogs/btrfsutil/open.go | |
parent | c971b863a0a1f9feb75f31657729db3a03da114c (diff) |
tree-wide: Annotate values that I might want to be tuning
Diffstat (limited to 'lib/btrfsprogs/btrfsutil/open.go')
-rw-r--r-- | lib/btrfsprogs/btrfsutil/open.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/btrfsprogs/btrfsutil/open.go b/lib/btrfsprogs/btrfsutil/open.go index 9491a20..441d4e2 100644 --- a/lib/btrfsprogs/btrfsutil/open.go +++ b/lib/btrfsprogs/btrfsutil/open.go @@ -14,6 +14,7 @@ import ( "git.lukeshu.com/btrfs-progs-ng/lib/btrfs" "git.lukeshu.com/btrfs-progs-ng/lib/btrfs/btrfsvol" "git.lukeshu.com/btrfs-progs-ng/lib/diskio" + "git.lukeshu.com/btrfs-progs-ng/lib/textui" ) func Open(ctx context.Context, flag int, filenames ...string) (*btrfs.FS, error) { @@ -30,8 +31,8 @@ func Open(ctx context.Context, flag int, filenames ...string) (*btrfs.FS, error) } bufFile := diskio.NewBufferedFile[btrfsvol.PhysicalAddr]( typedFile, - 16384, // block size: 16KiB - 1024, // number of blocks to buffer; total of 16MiB + textui.Tunable[btrfsvol.PhysicalAddr](16384), // block size: 16KiB + textui.Tunable(1024), // number of blocks to buffer; total of 16MiB ) devFile := &btrfs.Device{ File: bufFile, |