mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 11:10:44 +00:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user