From: Lennart Poettering Date: Fri, 9 Feb 2018 08:52:36 +0000 (+0100) Subject: rm-rf: make flags fields easier to read X-Git-Tag: v238~108^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7279ce82d646219431a9441b2fceb021e75ab7f;p=thirdparty%2Fsystemd.git rm-rf: make flags fields easier to read --- diff --git a/src/basic/rm-rf.h b/src/basic/rm-rf.h index ad63e9be407..6e63d3feab5 100644 --- a/src/basic/rm-rf.h +++ b/src/basic/rm-rf.h @@ -25,10 +25,10 @@ #include "util.h" typedef enum RemoveFlags { - REMOVE_ONLY_DIRECTORIES = 1, - REMOVE_ROOT = 2, - REMOVE_PHYSICAL = 4, /* if not set, only removes files on tmpfs, never physical file systems */ - REMOVE_SUBVOLUME = 8, + REMOVE_ONLY_DIRECTORIES = 1 << 0, + REMOVE_ROOT = 1 << 1, + REMOVE_PHYSICAL = 1 << 2, /* if not set, only removes files on tmpfs, never physical file systems */ + REMOVE_SUBVOLUME = 1 << 3, } RemoveFlags; int rm_rf_children(int fd, RemoveFlags flags, struct stat *root_dev);