]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fs-util: add comment about XO_NOCOW
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Nov 2024 08:21:25 +0000 (09:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Nov 2024 08:21:25 +0000 (09:21 +0100)
src/basic/fs-util.c

index db0a316e6d3995c6fcbe95786d95f052b703b965..4ede324c34c5965169d36c59ff0547b59182d90a 100644 (file)
@@ -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)) {