2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2012-07-18 19:07:51 +02:00
|
|
|
#pragma once
|
2010-08-11 22:58:34 +02:00
|
|
|
|
|
|
|
/***
|
|
|
|
This file is part of systemd.
|
|
|
|
|
|
|
|
Copyright 2010 Lennart Poettering
|
|
|
|
***/
|
|
|
|
|
2014-12-27 18:46:36 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <sys/types.h>
|
2010-08-11 22:58:34 +02:00
|
|
|
|
2018-03-27 07:38:26 +02:00
|
|
|
typedef enum LabelFixFlags {
|
|
|
|
LABEL_IGNORE_ENOENT = 1U << 0,
|
|
|
|
LABEL_IGNORE_EROFS = 1U << 1,
|
|
|
|
} LabelFixFlags;
|
|
|
|
|
|
|
|
int label_fix(const char *path, LabelFixFlags flags);
|
2014-10-23 19:58:45 +02:00
|
|
|
|
|
|
|
int mkdir_label(const char *path, mode_t mode);
|
|
|
|
int symlink_label(const char *old_path, const char *new_path);
|
2017-12-19 14:33:11 +01:00
|
|
|
|
|
|
|
int btrfs_subvol_make_label(const char *path);
|