patch-2.3.45 linux/fs/ncpfs/inode.c

Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/locks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/fs/ncpfs/inode.c linux/fs/ncpfs/inode.c
@@ -693,6 +693,8 @@
 		/* According to ndir, the changes only take effect after
 		   closing the file */
 		result = ncp_make_closed(inode);
+		if (!result)
+			vmtruncate(inode, attr->ia_size);
 	}
 out:
 	return result;

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])