fs_uuid.c 599 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * cmd_fs_uuid.c -- fsuuid command
  4. *
  5. * Copyright (C) 2014, Bachmann electronic GmbH
  6. */
  7. #include <common.h>
  8. #include <command.h>
  9. #include <fs.h>
  10. static int do_fs_uuid_wrapper(struct cmd_tbl *cmdtp, int flag, int argc,
  11. char *const argv[])
  12. {
  13. return do_fs_uuid(cmdtp, flag, argc, argv, FS_TYPE_ANY);
  14. }
  15. U_BOOT_CMD(
  16. fsuuid, 4, 1, do_fs_uuid_wrapper,
  17. "Look up a filesystem UUID",
  18. "<interface> <dev>:<part>\n"
  19. " - print filesystem UUID\n"
  20. "fsuuid <interface> <dev>:<part> <varname>\n"
  21. " - set environment variable to filesystem UUID\n"
  22. );