OSDN Git Service

Add PROFILE_FILE_NO_RELOAD flag which is used by profile_update_file()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 4 Jul 2007 14:36:15 +0000 (10:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Jul 2007 14:36:15 +0000 (10:36 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/profile.c

index d46833c..4dd4c96 100644 (file)
@@ -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);