aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/file-chflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/file-chflags.c')
-rw-r--r--libdiskfs/file-chflags.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libdiskfs/file-chflags.c b/libdiskfs/file-chflags.c
index d70cc712..01dc495c 100644
--- a/libdiskfs/file-chflags.c
+++ b/libdiskfs/file-chflags.c
@@ -1,5 +1,5 @@
/* libdiskfs implementation of fs.defs:file_chflags
- Copyright (C) 1992, 1993, 1994, 1996 Free Software Foundation
+ Copyright (C) 1992, 1993, 1994, 1996, 1998 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -29,6 +29,12 @@ diskfs_S_file_chflags (struct protid *cred,
if (!err)
err = diskfs_validate_flags_change (np, flags);
if (!err)
- np->dn_stat.st_flags = flags;
+ {
+ np->dn_stat.st_flags = flags;
+ np->dn_set_ctime = 1;
+ }
+ if (!err && np->filemod_reqs)
+ diskfs_notice_filechange(np, FILE_CHANGED_META,
+ 0, 0);
}));
}