mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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>
35 lines
695 B
Python
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",
|
|
)
|