From af3baf174a218cbd54291f0f76d1641c782aad64 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 8 Nov 2024 09:21:25 +0100 Subject: [PATCH] fs-util: add comment about XO_NOCOW --- src/basic/fs-util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c index db0a316e6d3..4ede324c34c 100644 --- a/src/basic/fs-util.c +++ b/src/basic/fs-util.c @@ -1131,6 +1131,8 @@ int xopenat_full(int dir_fd, const char *path, int open_flags, XOpenFlags xopen_ * • If O_CREAT is used with XO_LABEL, any created file will be immediately relabelled. * * • If the path is specified NULL or empty, behaves like fd_reopen(). + * + * • If XO_NOCOW is specified will turn on the NOCOW btrfs flag on the file, if available. */ if (isempty(path)) { -- 2.47.3