Files
Tiwei Bie 0da79ed4bf erofs: support block based dirent lookup
This patch adds the block based dirent lookup support to pkg/erofs,
which will do the dirent lookup by doing binary search on disk data
directly. This is helpful for searching files in large directories
and also reduces the memory overhead.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
2023-11-28 12:59:35 +08:00

35 lines
695 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "erofs",
srcs = [
"erofs.go",
"erofs_unsafe.go",
],
marshal = True,
visibility = ["//visibility:public"],
deps = [
"//pkg/abi/linux",
"//pkg/cleanup",
"//pkg/errors/linuxerr",
"//pkg/gohacks",
"//pkg/hostarch",
"//pkg/log",
"//pkg/marshal",
"//pkg/safemem",
"@org_golang_x_sys//unix:go_default_library",
],
)
go_test(
name = "erofs_test",
size = "small",
srcs = ["erofs_test.go"],
library = ":erofs",
)