]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/label.h
tree-wide: unify how we define bit mak enums
[thirdparty/systemd.git] / src / basic / label.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2010 Lennart Poettering
8 ***/
9
10 #include <stdbool.h>
11 #include <sys/types.h>
12
13 typedef enum LabelFixFlags {
14 LABEL_IGNORE_ENOENT = 1 << 0,
15 LABEL_IGNORE_EROFS = 1 << 1,
16 } LabelFixFlags;
17
18 int label_fix(const char *path, LabelFixFlags flags);
19
20 int mkdir_label(const char *path, mode_t mode);
21 int symlink_label(const char *old_path, const char *new_path);
22
23 int btrfs_subvol_make_label(const char *path);