summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/ext4/disklayout/BUILD
blob: 2920bfb5241e7065dcba82112ccc3b08de0e406f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package(licenses = ["notice"])

load("//tools/go_stateify:defs.bzl", "go_library", "go_test")

go_library(
    name = "disklayout",
    srcs = [
        "block_group.go",
        "block_group_32.go",
        "block_group_64.go",
        "dirent.go",
        "dirent_new.go",
        "dirent_old.go",
        "disklayout.go",
        "inode.go",
        "inode_new.go",
        "inode_old.go",
        "superblock.go",
        "superblock_32.go",
        "superblock_64.go",
        "superblock_old.go",
        "test_utils.go",
    ],
    importpath = "gvisor.dev/gvisor/pkg/sentry/fs/ext4/disklayout",
    deps = [
        "//pkg/abi/linux",
        "//pkg/binary",
        "//pkg/sentry/fs",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/kernel/time",
    ],
)

go_test(
    name = "disklayout_test",
    size = "small",
    srcs = [
        "block_group_test.go",
        "dirent_test.go",
        "inode_test.go",
        "superblock_test.go",
    ],
    embed = [":disklayout"],
    deps = ["//pkg/sentry/kernel/time"],
)