Debian Codegraph @

src/shared/reread-partition-table.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "sd-forward.h"
5
6 #include "shared-forward.h"
7
8 typedef enum RereadPartitionTableFlags {
9 REREADPT_FORCE_UEVENT = 1 << 0, /* Force a "change" uevent out on partitions we didn't resize/remove/add */
10 REREADPT_BSD_LOCK = 1 << 1, /* Take a BSD lock on the device around the rescan operation */
11 } RereadPartitionTableFlags;
12
13 int reread_partition_table_fd(int fd, RereadPartitionTableFlags flags);
14 int reread_partition_table(sd_device *dev, RereadPartitionTableFlags flags);