X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fhpfs%2Fdir.c;h=96a8ed91ceddfe942dfe21d16529d2fb86567884;hb=f85f19de90a9997583bb26e6f1f9297a4e152c18;hp=f46ae025bfb58bc172716efcb66772add1daac43;hpb=14d74e0cab7a7779a7ff0c3863c04c8a8e507106;p=~andy%2Flinux diff --git a/fs/hpfs/dir.c b/fs/hpfs/dir.c index f46ae025bfb..96a8ed91ced 100644 --- a/fs/hpfs/dir.c +++ b/fs/hpfs/dir.c @@ -29,6 +29,10 @@ static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) struct hpfs_inode_info *hpfs_inode = hpfs_i(i); struct super_block *s = i->i_sb; + /* Somebody else will have to figure out what to do here */ + if (whence == SEEK_DATA || whence == SEEK_HOLE) + return -EINVAL; + hpfs_lock(s); /*printk("dir lseek\n");*/