mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
fs/fat: implement fsuuid command
The FAT file system does not have a UUID but a 4 byte volume ID. Let the fsuuid command show it in XXXX-XXXX format. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -212,4 +212,16 @@ int fat_unlink(const char *filename);
|
||||
int fat_mkdir(const char *dirname);
|
||||
void fat_close(void);
|
||||
void *fat_next_cluster(fat_itr *itr, unsigned int *nbytes);
|
||||
|
||||
/**
|
||||
* fat_uuid() - get FAT volume ID
|
||||
*
|
||||
* The FAT volume ID returned in @uuid_str as hexadecimal number in XXXX-XXXX
|
||||
* format.
|
||||
*
|
||||
* @uuid_str: caller allocated buffer of at least 10 bytes for the volume ID
|
||||
* Return: 0 on success
|
||||
*/
|
||||
int fat_uuid(char *uuid_str);
|
||||
|
||||
#endif /* _FAT_H_ */
|
||||
|
Reference in New Issue
Block a user