mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 11:56:33 -05:00
New Btrfs support using IOCTLs to get UUID and low level devices
This commit is contained in:
parent
b51307269a
commit
ee6acba9a9
3 changed files with 169 additions and 207 deletions
|
|
@ -1899,14 +1899,14 @@ int windows_readlink(const char* file, char* buffer, size_t size)
|
|||
return len;
|
||||
}
|
||||
|
||||
int devuuid(uint64_t device, const char* path, char* uuid, size_t uuid_size)
|
||||
int devuuid(uint64_t device_id, const char* device_path, char* uuid, size_t uuid_size)
|
||||
{
|
||||
(void)path;
|
||||
(void)device_path;
|
||||
|
||||
/* just use the volume serial number returned in the device parameter */
|
||||
snprintf(uuid, uuid_size, "%08x", (unsigned)device);
|
||||
snprintf(uuid, uuid_size, "%08x", (unsigned)device_id);
|
||||
|
||||
log_tag("uuid:windows:%u:%s:\n", (unsigned)device, uuid);
|
||||
log_tag("uuid:windows:%u:%s:\n", (unsigned)device_id, uuid);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue