修改mkfs支持生成uuid和label

Signed-off-by: linlinlin <linhaotian2@huawei.com>
This commit is contained in:
linlinlin 2024-07-06 17:18:59 +08:00
parent 45debf115c
commit f486aebf08
3 changed files with 6 additions and 2 deletions

View File

@ -198,6 +198,10 @@
/* Version number of package */ /* Version number of package */
#define VERSION "1.15.0" #define VERSION "1.15.0"
#define HAVE_UUID_UUID_H 1
#define HAVE_LIBUUID 1
/* Define to `__inline__' or `__inline' if that's what the C compiler /* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */ calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus #ifndef __cplusplus

View File

@ -26,7 +26,7 @@
#include <time.h> #include <time.h>
#ifdef HAVE_UUID_UUID_H #ifdef HAVE_UUID_UUID_H
#include <uuid/uuid.h> #include <uuid.h>
#endif #endif
#ifndef HAVE_LIBUUID #ifndef HAVE_LIBUUID
#define uuid_parse(a, b) -1 #define uuid_parse(a, b) -1

View File

@ -30,7 +30,7 @@
#include <blkid/blkid.h> #include <blkid/blkid.h>
#endif #endif
#ifdef HAVE_UUID_UUID_H #ifdef HAVE_UUID_UUID_H
#include <uuid/uuid.h> #include <uuid.h>
#endif #endif
#include "quota.h" #include "quota.h"