From 9fc47dedf80ce220673a9d47525f63a0eddd4c28 Mon Sep 17 00:00:00 2001 From: Nic Henke Date: Fri, 18 Nov 2016 10:05:57 -0700 Subject: [PATCH] Add unlocked ioctls for directories. The use of the Scout ioctls for inode-since and data-since on the root directory is a rather helpful boost. This allows user code to start on blank filesystems and monitor activity without needing to create files. The existing ioctl code was already present, so wiring into the directory file operations was all that needed to happen. Signed-off-by: Nic Henke Reviewed-by: Zach Brown Reviewed-by: Mark Fasheh --- kmod/src/dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kmod/src/dir.c b/kmod/src/dir.c index d912b136..ce579e8c 100644 --- a/kmod/src/dir.c +++ b/kmod/src/dir.c @@ -21,6 +21,7 @@ #include "format.h" #include "dir.h" #include "inode.h" +#include "ioctl.h" #include "key.h" #include "super.h" #include "trans.h" @@ -941,6 +942,7 @@ out: const struct file_operations scoutfs_dir_fops = { .readdir = scoutfs_readdir, + .unlocked_ioctl = scoutfs_ioctl, .fsync = scoutfs_file_fsync, .llseek = generic_file_llseek, };