Keep track of the sparse status of an open file handle. Allows bypass of
[ira/wip.git] / source3 / smbd / dosmode.c
index 2c6dcd00c6cd434805a107be943517a0ed732c02..cf95348583e1d7b26f0793845b8936a2ed8b30f6 100644 (file)
@@ -911,6 +911,8 @@ NTSTATUS file_set_sparse(connection_struct *conn,
                     FILE_NOTIFY_CHANGE_ATTRIBUTES,
                     fsp->fsp_name->base_name);
 
+       fsp->is_sparse = sparse;
+
        return NT_STATUS_OK;
 }