mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
dissect: pick up gpt partition flags
Let's store the GPT partition flags in the dissected partition info. Right now we won't actually use them for anything yet, but later we'll add that, when enforcing policy on dissection.
This commit is contained in:
@@ -934,6 +934,7 @@ static int dissect_image(
|
||||
.mount_node_fd = TAKE_FD(mount_node_fd),
|
||||
.offset = (uint64_t) start * 512,
|
||||
.size = (uint64_t) size * 512,
|
||||
.gpt_flags = pflags,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ struct DissectedPartition {
|
||||
int mount_node_fd;
|
||||
uint64_t size;
|
||||
uint64_t offset;
|
||||
uint64_t gpt_flags;
|
||||
};
|
||||
|
||||
#define DISSECTED_PARTITION_NULL \
|
||||
|
||||
Reference in New Issue
Block a user