2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include "xfs_types.h"
22 #include "xfs_trans.h"
24 #include "xfs_dmapi.h"
27 #include "xfs_mount.h"
30 static struct xfs_dmops xfs_dmcore_stub
= {
31 .xfs_send_data
= (xfs_send_data_t
)fs_nosys
,
32 .xfs_send_mmap
= (xfs_send_mmap_t
)fs_noerr
,
33 .xfs_send_destroy
= (xfs_send_destroy_t
)fs_nosys
,
34 .xfs_send_namesp
= (xfs_send_namesp_t
)fs_nosys
,
35 .xfs_send_mount
= (xfs_send_mount_t
)fs_nosys
,
36 .xfs_send_unmount
= (xfs_send_unmount_t
)fs_noerr
,
40 xfs_dmops_get(struct xfs_mount
*mp
)
42 if (mp
->m_flags
& XFS_MOUNT_DMAPI
) {
44 "XFS: dmapi support not available in this kernel.");
48 mp
->m_dm_ops
= &xfs_dmcore_stub
;
53 xfs_dmops_put(struct xfs_mount
*mp
)