Files
u-boot/cmd/fs_uuid.c
Simon Glass 56c6289442 fs: Create a header file for filesystem-related commands
Most commands access the filesystem through the command-line interface
rather than the filesystem API itself. Add a new header file which
contains these functions, so we can separate commands from the API.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-06-28 12:30:56 -06:00

26 lines
606 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* cmd_fs_uuid.c -- fsuuid command
*
* Copyright (C) 2014, Bachmann electronic GmbH
*/
#include <command.h>
#include <fs_cmd.h>
#include <fs_legacy.h>
static int do_fs_uuid_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
}
U_BOOT_CMD(
fsuuid, 4, 1, do_fs_uuid_wrapper,
"Look up a filesystem UUID",
"<interface> <dev>:<part>\n"
" - print filesystem UUID\n"
"fsuuid <interface> <dev>:<part> <varname>\n"
" - set environment variable to filesystem UUID\n"
);