提交 aadbd436 编写于 作者: A Arnd Bergmann

viotape: use noop_llseek

Some applications try to seek on tape devices
and fail if they return an error. Since we
want to change the default llseek action to
no_llseek, viotape needs to be changed to use
noop_llseek explicitly.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 cb3b9cf8
...@@ -804,6 +804,7 @@ const struct file_operations viotap_fops = { ...@@ -804,6 +804,7 @@ const struct file_operations viotap_fops = {
.unlocked_ioctl = viotap_unlocked_ioctl, .unlocked_ioctl = viotap_unlocked_ioctl,
.open = viotap_open, .open = viotap_open,
.release = viotap_release, .release = viotap_release,
.llseek = noop_llseek,
}; };
/* Handle interrupt events for tape */ /* Handle interrupt events for tape */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册