]> Git Repo - J-u-boot.git/blame - cmd/btrfs.c
configs: Remove duplicate newlines
[J-u-boot.git] / cmd / btrfs.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
9d845509 2/*
61143f74 3 * 2017 by Marek Behún <[email protected]>
9d845509
MB
4 */
5
9d845509
MB
6#include <command.h>
7#include <btrfs.h>
8#include <fs.h>
9
09140113 10int do_btrsubvol(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
9d845509
MB
11{
12 if (argc != 3)
13 return CMD_RET_USAGE;
14
15 if (fs_set_blk_dev(argv[1], argv[2], FS_TYPE_BTRFS))
16 return 1;
17
18 btrfs_list_subvols();
19 return 0;
20}
21
22U_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."
10c398d6 26);
This page took 0.285268 seconds and 4 git commands to generate.