s3: Pass the aio_force operation through vfs_gpfs
authorVolker Lendecke <vl@samba.org>
Fri, 25 Feb 2011 13:55:28 +0000 (06:55 -0700)
committerVolker Lendecke <vlendec@samba.org>
Wed, 2 Mar 2011 18:24:27 +0000 (19:24 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar  2 19:24:27 CET 2011 on sn-devel-104

source3/modules/vfs_gpfs.c

index b820eba07d9bba83758b874a17eca9aa40bbff1c..e9257e65a34e7986ec4f73f9ddb5cc5b96939d2d 100644 (file)
@@ -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
 };