diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-13 01:01:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-13 01:01:56 +0100 |
commit | cca1dfddd4ce4357113663532696488427cc54e4 (patch) | |
tree | 49e3c09d7438e0f1aa92d2f419f4bca723ff9cfd /src/shared | |
parent | f75cac3746efa4c3fb0b1dbc458c9ae0bf083a52 (diff) |
gpt-auto-generator: honour read-only and no-auto flag from GPT data
Similar to the read-only and no-automount flags of Microsoft Basic Data
Partitions, introduce our own flags. We map them to the same flag bits
as Microsoft's, to keep things simple.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/gpt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/gpt.h b/src/shared/gpt.h index 320cf47823..a0dff5f130 100644 --- a/src/shared/gpt.h +++ b/src/shared/gpt.h @@ -39,3 +39,10 @@ #elif defined(__i386__) # define GPT_ROOT_NATIVE GPT_ROOT_X86 #endif + +/* Flags we recognize on the root, swap, home and srv partitions when + * doing auto-discovery. These happen to be identical to what + * Microsoft defines for its own Basic Data Partitions, but that's + * just because we saw no point in defining any other values here. */ +#define GPT_FLAG_READ_ONLY (1ULL << 60) +#define GPT_FLAG_NO_AUTO (1ULL << 63) |