Re: [PATCH] reiser4: return -ENOTTY from unsupported ioctls.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK

On 09/30/2016 08:49 AM, Ivan Shapovalov wrote:
Signed-off-by: Ivan Shapovalov <intelfx@xxxxxxxxxxxx>
---
  plugin/file/cryptcompress.c | 2 +-
  plugin/file/file.c          | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/file/cryptcompress.c b/plugin/file/cryptcompress.c
index 59d8df8..67c48d7 100644
--- a/plugin/file/cryptcompress.c
+++ b/plugin/file/cryptcompress.c
@@ -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 */
diff --git a/plugin/file/file.c b/plugin/file/file.c
index 064f26e..9d08481 100644
--- a/plugin/file/file.c
+++ b/plugin/file/file.c
@@ -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);

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux