diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-03 16:53:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:41 -0500 |
commit | 43101d6dd5bf3f4c805e3c23bf5c2a5e3c85d284 (patch) | |
tree | ec94eb14379000ac0825bb68f5cb1184d05cd9be /source3/smbd/vfs.c | |
parent | 4c484662d63e1ce00afc9dc445579dc73122b360 (diff) | |
download | samba-43101d6dd5bf3f4c805e3c23bf5c2a5e3c85d284.tar.gz samba-43101d6dd5bf3f4c805e3c23bf5c2a5e3c85d284.tar.xz samba-43101d6dd5bf3f4c805e3c23bf5c2a5e3c85d284.zip |
r21131: Some notify fixes
(This used to be commit b9300e1d5acba4e2537fcc6631d1ee4d53685f64)
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r-- | source3/smbd/vfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index df81b2936d4..82ea602187c 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -514,8 +514,13 @@ int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len) release_level_2_oplocks_on_change(fsp); DEBUG(10,("vfs_set_filelen: ftruncate %s to len %.0f\n", fsp->fsp_name, (double)len)); flush_write_cache(fsp, SIZECHANGE_FLUSH); - if ((ret = SMB_VFS_FTRUNCATE(fsp, fsp->fh->fd, len)) != -1) + if ((ret = SMB_VFS_FTRUNCATE(fsp, fsp->fh->fd, len)) != -1) { set_filelen_write_cache(fsp, len); + notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED, + FILE_NOTIFY_CHANGE_SIZE + | FILE_NOTIFY_CHANGE_ATTRIBUTES, + fsp->fsp_name); + } return ret; } |