[Devel] [PATCH] ploop: Disable ioctl(PLOOP_IOC_BALLOON)
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Apr 9 19:43:39 MSK 2019
This ioctl enters in discard maintaince mode
in hidden way. The discard logic is rewritten,
so we disable it.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/block/ploop/dev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
index 815c74438dd6..75e00b5dc864 100644
--- a/drivers/block/ploop/dev.c
+++ b/drivers/block/ploop/dev.c
@@ -4514,6 +4514,8 @@ static int ploop_balloon_ioc(struct ploop_device *plo, unsigned long arg)
struct ploop_balloon_ctl ctl;
struct ploop_delta *delta = ploop_top_delta(plo);
+ return -EINVAL;
+
if (list_empty(&plo->map.delta_list))
return -ENOENT;
More information about the Devel
mailing list