Adds UUID to check to detect disk misplacement.

This commit is contained in:
Andrea Mazzoleni 2013-03-03 22:39:46 +01:00
parent 8810d7b05d
commit 768113c670
15 changed files with 272 additions and 34 deletions

View file

@ -128,6 +128,12 @@ static inline int hardlink(const char* a, const char* b)
return link(a, b);
}
/**
* Get the device UUID.
* Returns 0 on success.
*/
int devuuid(uint64_t device, char* uuid, size_t size);
/**
* Initializes the system.
*/