@@ -19,8 +19,34 @@ int do_btrsubvol(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
1919 return 0 ;
2020}
2121
22+ static int do_btr_ls (struct cmd_tbl * cmdtp , int flag , int argc , char * const argv [])
23+ {
24+ return do_ls (cmdtp , flag , argc , argv , FS_TYPE_BTRFS );
25+ }
26+
27+ static int do_btr_load (struct cmd_tbl * cmdtp , int flag , int argc , char * const argv [])
28+ {
29+ return do_load (cmdtp , flag , argc , argv , FS_TYPE_BTRFS );
30+ }
31+
2232U_BOOT_CMD (btrsubvol , 3 , 1 , do_btrsubvol ,
2333 "list subvolumes of a BTRFS filesystem" ,
2434 "<interface> <dev[:part]>\n"
2535 " - List subvolumes of a BTRFS filesystem."
2636);
37+
38+ U_BOOT_CMD (
39+ btrls , 4 , 1 , do_btr_ls ,
40+ "list files in a directory (default /) on a BTRFS filesystem" ,
41+ "<interface> [<dev[:part]>] [directory]\n"
42+ " - list files from 'dev' on 'interface' in 'directory'"
43+ );
44+
45+ U_BOOT_CMD (
46+ btrload , 7 , 0 , do_btr_load ,
47+ "load binary file from a BTRFS filesystem" ,
48+ "<interface> [<dev[:part]>] <addr> <filename> [bytes [pos]]\n"
49+ " - load file 'filename' from 'dev' on 'interface' to 'addr'\n"
50+ " 'pos' is the file offset to start from; if 'bytes' is 0 or\n"
51+ " omitted, the whole file is read. Sets env fileaddr/filesize."
52+ );
0 commit comments