patch-1.3.4 linux/fs/umsdos/emd.c
Next file: linux/fs/umsdos/ioctl.c
Previous file: linux/fs/umsdos/dir.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Jun 26 09:51:17 1995
- Orig file:
v1.3.3/linux/fs/umsdos/emd.c
- Orig date:
Mon Jan 23 10:38:30 1995
diff -u --recursive --new-file v1.3.3/linux/fs/umsdos/emd.c linux/fs/umsdos/emd.c
@@ -22,19 +22,6 @@
#define PRINTK(x)
#define Printk(x) printk x
-int umsdos_readdir_kmem(
- struct inode *inode,
- struct file *filp,
- struct dirent *dirent,
- int count)
-{
- int ret;
- int old_fs = get_fs();
- set_fs (KERNEL_DS);
- ret = msdos_readdir(inode,filp,dirent,count);
- set_fs (old_fs);
- return ret;
-}
/*
Read a file into kernel space memory
*/
@@ -102,7 +89,8 @@
filp->f_flags = 0;
sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count);
if (sizeread != count){
- printk ("UMSDOS: problem with EMD file. Can't read\n");
+ printk ("UMSDOS: problem with EMD file. Can't read pos = %ld (%d != %d)\n"
+ ,filp->f_pos,sizeread,count);
ret = -EIO;
}
return ret;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this