aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/io-prenotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-prenotify.c')
-rw-r--r--libdiskfs/io-prenotify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/io-prenotify.c b/libdiskfs/io-prenotify.c
index 4ae3967b..f193f52b 100644
--- a/libdiskfs/io-prenotify.c
+++ b/libdiskfs/io-prenotify.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994, 1995, 1996 Free Software Foundation
+ Copyright (C) 1994, 1995, 1996, 2001 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
@@ -22,7 +22,7 @@
We set the prenotify size to be the allocated size of the file;
then users are forced to call this routine before writing past
- that, and we can do allocation (orreturn ENOSPC if necessary. */
+ that, and we can do allocation (or return ENOSPC if necessary). */
kern_return_t
diskfs_S_io_prenotify (struct protid *cred,
vm_offset_t start __attribute__ ((unused)),
@@ -64,6 +64,8 @@ diskfs_S_io_prenotify (struct protid *cred,
err = diskfs_grow (np, end, cred);
if (diskfs_synchronous)
diskfs_node_update (np, 1);
+ if (!err && np->filemod_reqs)
+ diskfs_notice_filechange (np, FILE_CHANGED_EXTEND, 0, end);
out:
mutex_unlock (&np->lock);
return err;