reiser4: return -ENOTTY from unsupported ioctls.
PATCH 1/1 reiser4: return -ENOTTY from unsupported ioctls.
Signed-off-by Ivan Shapovalov <[email protected]>
--- plugin/file/cryptcompress.c | 2 +- plugin/file/file.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
plugin/file/cryptcompress.c +1 -1
@@ -3544,7 +3544,7 @@ int writepages_cryptcompress(struct address_space *mapping,int ioctl_cryptcompress (struct file *filp,unsigned int cmd,unsigned long arg) { -return RETERR (-ENOSYS ); +return RETERR (-ENOTTY ); }/* plugin->mmap */
plugin/file/file.c +1 -1
@@ -2446,7 +2446,7 @@ int ioctl_unix_file(struct file *filp, unsigned int cmd,break ;default : - result =RETERR (-ENOSYS ); + result =RETERR (-ENOTTY );break ; }reiser4_exit_context (ctx);
Signature · 1 line
2.10.0
OK
Quoted 32 lines · Ivan Shapovalov
Signed-off-by Ivan Shapovalov <[email protected]>--- plugin/file/cryptcompress.c | 2 +- plugin/file/file.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)plugin/file/cryptcompress.c +1
-1@@ -3544,7 +3544,7 @@ int writepages_cryptcompress(struct address_space *mapping,int ioctl_cryptcompress (struct file *filp,unsigned int cmd,unsigned long arg) { -return RETERR (-ENOSYS ); +return RETERR (-ENOTTY ); }/* plugin->mmap */ plugin/file/file.c +1
-1@@ -2446,7 +2446,7 @@ int ioctl_unix_file(struct file *filp, unsigned int cmd,break ;default : - result =RETERR (-ENOSYS ); + result =RETERR (-ENOTTY );break ; }reiser4_exit_context (ctx);