From 4afda9ebf49f2dc63b98c38132ce636ecf92e938 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Feb 2011 06:55:28 -0700 Subject: s3: Pass the aio_force operation through vfs_gpfs Autobuild-User: Volker Lendecke Autobuild-Date: Wed Mar 2 19:24:27 CET 2011 on sn-devel-104 --- source3/modules/vfs_gpfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index b820eba07d..e9257e65a3 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1220,6 +1220,12 @@ static bool vfs_gpfs_is_offline(struct vfs_handle_struct *handle, return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf); } +static bool vfs_gpfs_aio_force(struct vfs_handle_struct *handle, + struct files_struct *fsp) +{ + return vfs_gpfs_is_offline(handle, fsp->fsp_name, &fsp->fsp_name->st); +} + int vfs_gpfs_connect(struct vfs_handle_struct *handle, const char *service, const char *user) { @@ -1295,6 +1301,7 @@ static struct vfs_fn_pointers vfs_gpfs_fns = { .lstat = vfs_gpfs_lstat, .ntimes = vfs_gpfs_ntimes, .is_offline = vfs_gpfs_is_offline, + .aio_force = vfs_gpfs_aio_force, .ftruncate = vfs_gpfs_ftruncate }; -- cgit