mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 04:17:02 -05:00
Adds UUID to check to detect disk misplacement.
This commit is contained in:
parent
8810d7b05d
commit
768113c670
15 changed files with 272 additions and 34 deletions
8
mingw.c
8
mingw.c
|
|
@ -1029,5 +1029,13 @@ int windows_readlink(const char* file, char* buffer, size_t size)
|
|||
return len;
|
||||
}
|
||||
|
||||
int devuuid(uint64_t device, char* uuid, size_t uuid_size)
|
||||
{
|
||||
/* just use the volume serial number returned in the device parameter */
|
||||
|
||||
snprintf(uuid, uuid_size, "%08x", (unsigned)device);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue