diff options
Diffstat (limited to 'libdiskfs/io-write.c')
-rw-r--r-- | libdiskfs/io-write.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c index e84bdecb..adbfc6d5 100644 --- a/libdiskfs/io-write.c +++ b/libdiskfs/io-write.c @@ -64,6 +64,8 @@ diskfs_S_io_write (struct protid *cred, diskfs_node_update (np, 1); if (err) goto out; + if (np->filemod_reqs) + diskfs_notice_filechange (np, FILE_CHANGED_EXTEND, 0, off + datalen); } if (off + (off_t) datalen > np->dn_stat.st_size) @@ -84,6 +86,8 @@ diskfs_S_io_write (struct protid *cred, && ((cred->po->openstat & O_FSYNC) || diskfs_synchronous)) diskfs_file_update (np, 1); + if (!err && np->filemod_reqs) + diskfs_notice_filechange (np, FILE_CHANGED_WRITE, off, off + *amt); out: mutex_unlock (&np->lock); return err; |