Coverage Report

Created: 2026-03-11 06:21

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/u-boot/cmd/btrfs.c
Line
Count
Source
1
// SPDX-License-Identifier: GPL-2.0+
2
/*
3
 * 2017 by Marek BehĂșn <kabel@kernel.org>
4
 */
5
6
#include <command.h>
7
#include <btrfs.h>
8
#include <fs.h>
9
10
int do_btrsubvol(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
11
0
{
12
0
  if (argc != 3)
13
0
    return CMD_RET_USAGE;
14
15
0
  if (fs_set_blk_dev(argv[1], argv[2], FS_TYPE_BTRFS))
16
0
    return 1;
17
18
0
  btrfs_list_subvols();
19
0
  return 0;
20
0
}
21
22
U_BOOT_CMD(btrsubvol, 3, 1, do_btrsubvol,
23
  "list subvolumes of a BTRFS filesystem",
24
  "<interface> <dev[:part]>\n"
25
  "     - List subvolumes of a BTRFS filesystem."
26
);