From: Theodore Ts'o Date: Wed, 4 Jul 2007 14:36:15 +0000 (-0400) Subject: Add PROFILE_FILE_NO_RELOAD flag which is used by profile_update_file() X-Git-Tag: v1.40.1~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6bde5c28ba25600f02f6d8cd2e8de39017bc421d;p=tools%2Fe2fsprogs.git Add PROFILE_FILE_NO_RELOAD flag which is used by profile_update_file() Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/profile.c b/e2fsck/profile.c index d46833c..4dd4c96 100644 --- a/e2fsck/profile.c +++ b/e2fsck/profile.c @@ -105,6 +105,7 @@ typedef struct _prf_file_t *prf_file_t; */ #define PROFILE_FILE_RW 0x0001 #define PROFILE_FILE_DIRTY 0x0002 +#define PROFILE_FILE_NO_RELOAD 0x0004 /* * This structure defines the high-level, user visible profile_t @@ -452,6 +453,9 @@ errcode_t profile_update_file(prf_file_t prf) char buf[2048]; struct parse_state state; + if (prf->flags & PROFILE_FILE_NO_RELOAD) + return 0; + #ifdef HAVE_STAT #ifdef STAT_ONCE_PER_SECOND now = time(0);