patch-2.4.0-test1 linux/fs/ncpfs/file.c
Next file: linux/fs/ncpfs/ioctl.c
Previous file: linux/fs/fcntl.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu May 25 09:32:48 2000
- Orig file:
v2.3.99-pre9/linux/fs/ncpfs/file.c
- Orig date:
Sat Feb 26 22:31:53 2000
diff -u --recursive --new-file v2.3.99-pre9/linux/fs/ncpfs/file.c linux/fs/ncpfs/file.c
@@ -275,12 +275,22 @@
return already_written ? already_written : errno;
}
+static int ncp_release(struct inode *inode, struct file *file) {
+ if (NCP_FINFO(inode)->opened) {
+ if (ncp_make_closed(inode)) {
+ DPRINTK("ncp_release: failed to close\n");
+ }
+ }
+ return 0;
+}
+
struct file_operations ncp_file_operations =
{
read: ncp_file_read,
write: ncp_file_write,
ioctl: ncp_ioctl,
mmap: ncp_mmap,
+ release: ncp_release,
fsync: ncp_fsync,
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)