Commit cb2e54d
cmd: btrfs: Add btrls and btrload commands for BTRFS filesystem access
Add convenience commands for listing and loading files from BTRFS
filesystems, consistent with other filesystem command naming:
btrls <interface> [<dev[:part]>] [directory]
- List files in a directory (default /) on a BTRFS filesystem
btrload <interface> [<dev[:part]>] <addr> <filename> [bytes [pos]]
- Load a binary file from a BTRFS filesystem to memory
These commands mirror the functionality of extls/extload, fatls/fatload,
etc., providing a familiar interface for BTRFS users. They wrap the
existing do_ls() and do_load() generic implementations with FS_TYPE_BTRFS.
Change-Id: 45309060-a5ed-41d0-9ecd-45d290589078
Signed-off-by: Anton Burticica <mouse@ya.ru>1 parent 28bba87 commit cb2e54d
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments