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 <nic.henke@versity.com>
Reviewed-by: Zach Brown <zab@versity.com>
Reviewed-by: Mark Fasheh <mfasheh@versity.com>
This commit is contained in:
Nic Henke
2016-11-18 10:05:57 -07:00
committed by Zach Brown
parent e61697a54e
commit 9fc47dedf8

View File

@@ -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,
};