lkml.org 
[lkml]   [2022]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v12 45/54] ceph: disable fallocate for encrypted inodes
Date
...hopefully, just for now.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
fs/ceph/file.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index b3a5333c0a44..d8dfb8de4219 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -2209,6 +2209,9 @@ static long ceph_fallocate(struct file *file, int mode,
if (!S_ISREG(inode->i_mode))
return -EOPNOTSUPP;

+ if (IS_ENCRYPTED(inode))
+ return -EOPNOTSUPP;
+
prealloc_cf = ceph_alloc_cap_flush();
if (!prealloc_cf)
return -ENOMEM;
--
2.35.1
\
 
 \ /
  Last update: 2022-03-31 17:39    [W:0.199 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site