]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/label.h
tree-wide: remove Lennart's copyright lines
[thirdparty/systemd.git] / src / basic / label.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdbool.h>
5 #include <sys/types.h>
6
7 typedef enum LabelFixFlags {
8 LABEL_IGNORE_ENOENT = 1 << 0,
9 LABEL_IGNORE_EROFS = 1 << 1,
10 } LabelFixFlags;
11
12 int label_fix(const char *path, LabelFixFlags flags);
13
14 int mkdir_label(const char *path, mode_t mode);
15 int symlink_label(const char *old_path, const char *new_path);
16
17 int btrfs_subvol_make_label(const char *path);