Skip to content

Failed to call btrfs #8252

@frukto

Description

@frukto

below logs a lot of "Failed call to btrfs". Also the btrfs tab in the system view is empty.

Running strace on it, I see it statfss all btrfs files systems, but then ioctl(BTRFS_IOC_TREE_SEARCH_V2)s the / directory which in this case is not an btrfs but an an ext4. See the trace below.

This may be related to setting

pub const DEFAULT_ROOT: &str = "/";

but I have no idea what this does. And as far as I see, this is also not configurable for users.

Thank you very much for your help

--

strace below -d record

[...]
statfs("/some/btrfs/path", {f_type=BTRFS_SUPER_MAGIC, f_bsize=4096, f_blocks=50778611712, f_bfree=38901619985, f_bavail=38899946353, f_files=0, f_ffree=0, f_fsid={val=[0x8d567fd0, 0xeb4cf9e8]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_NOATIME}) = 0
statfs("/some/other/btrfs/path", {f_type=BTRFS_SUPER_MAGIC, f_bsize=4096, f_blocks=57125990400, f_bfree=39094000758, f_bavail=39062837470, f_files=0, f_ffree=0, f_fsid={val=[0xe3ab0791, 0xdeb1605f]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_NOATIME}) = 0
brk(0x55701a85d000)                     = 0x55701a85d000
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC) = 9
ioctl(9, BTRFS_IOC_TREE_SEARCH_V2, {key={tree_id=BTRFS_CHUNK_TREE_OBJECTID, min_objectid=0, max_objectid=UINT64_MAX, min_offset=0, max_offset=UINT64_MAX, min_transid=0, max_transid=UINT64_MAX, min_type=0, max_type=255, nr_items=4294967295}, buf_size=16384}) = -1 ENOTTY (Inappropriate ioctl for device)
close(9)                                = 0
write(2, "Jul 02 06:52:09.241", 19Jul 02 06:52:09.241)     = 19
write(2, " ", 1 )                        = 1
write(2, "ERRO", 4ERRO)                     = 4
write(2, " ", 1 )                        = 1
write(2, "Failed call to btrfs", 20Failed call to btrfs)    = 20
write(2, "\n", 1
)                       = 1
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions