diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-25 06:55:28 -0700 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-03-02 19:24:27 +0100 |
commit | 4afda9ebf49f2dc63b98c38132ce636ecf92e938 (patch) | |
tree | f683cb5a77ed737103421b4238df7590d4660791 /source3 | |
parent | 6405e341b9fac7f0adead9a65f86c8082c5059ae (diff) | |
download | samba-4afda9ebf49f2dc63b98c38132ce636ecf92e938.tar.gz samba-4afda9ebf49f2dc63b98c38132ce636ecf92e938.tar.xz samba-4afda9ebf49f2dc63b98c38132ce636ecf92e938.zip |
s3: Pass the aio_force operation through vfs_gpfs
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 2 19:24:27 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index b820eba07d9..e9257e65a34 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 }; |