3 bld
.SAMBA3_SUBSYSTEM('NFS4_ACLS',
7 bld
.SAMBA3_LIBRARY('non_posix_acls',
8 source
='non_posix_acls.c',
12 bld
.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
13 source
='vfs_aixacl_util.c',
14 enabled
=(bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl') or bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2')))
16 bld
.SAMBA3_SUBSYSTEM('vfs',
20 bld
.SAMBA3_MODULE('vfs_default',
22 source
='vfs_default.c',
23 deps
='samba-util NDR_DFSBLOBS',
25 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default'),
26 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
28 bld
.SAMBA3_MODULE('vfs_audit',
33 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
34 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
36 bld
.SAMBA3_MODULE('vfs_extd_audit',
38 source
='vfs_extd_audit.c',
41 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
42 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
44 bld
.SAMBA3_MODULE('vfs_full_audit',
46 source
='vfs_full_audit.c',
49 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
50 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
52 bld
.SAMBA3_MODULE('vfs_fake_perms',
54 source
='vfs_fake_perms.c',
57 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
58 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
60 bld
.SAMBA3_MODULE('vfs_fake_acls',
62 source
='vfs_fake_acls.c',
65 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_acls'),
66 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_acls'))
68 bld
.SAMBA3_MODULE('vfs_recycle',
70 source
='vfs_recycle.c',
73 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
74 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
76 bld
.SAMBA3_MODULE('vfs_netatalk',
78 source
='vfs_netatalk.c',
81 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
82 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
84 bld
.SAMBA3_MODULE('vfs_default_quota',
86 source
='vfs_default_quota.c',
89 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
90 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
92 bld
.SAMBA3_MODULE('vfs_readonly',
94 source
='vfs_readonly.c getdate.c',
97 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
98 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
100 bld
.SAMBA3_MODULE('vfs_cap',
105 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
106 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
108 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
110 source
='vfs_expand_msdfs.c',
113 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
114 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
116 bld
.SAMBA3_MODULE('vfs_shadow_copy',
118 source
='vfs_shadow_copy.c',
121 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
122 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
124 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
126 source
='vfs_shadow_copy2.c',
127 deps
='samba-util tdb',
129 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
130 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
132 bld
.SAMBA3_MODULE('vfs_afsacl',
134 source
='vfs_afsacl.c',
137 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
138 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
140 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
142 source
='vfs_xattr_tdb.c',
143 deps
='dbwrap xattr_tdb',
145 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
146 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
148 bld
.SAMBA3_MODULE('vfs_posix_eadb',
150 source
='vfs_posix_eadb.c',
151 deps
='tdb-wrap posix_eadb',
153 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED(),
154 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED())
156 bld
.SAMBA3_MODULE('vfs_posixacl',
158 source
='vfs_posixacl.c',
161 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
162 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
164 bld
.SAMBA3_MODULE('vfs_aixacl',
166 source
='vfs_aixacl.c',
167 deps
='VFS_AIXACL_UTIL',
169 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
170 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
172 bld
.SAMBA3_MODULE('vfs_aixacl2',
174 source
='vfs_aixacl2.c',
175 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
177 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
178 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
180 bld
.SAMBA3_MODULE('vfs_solarisacl',
182 source
='vfs_solarisacl.c',
185 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
186 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
188 bld
.SAMBA3_MODULE('vfs_zfsacl',
190 source
='vfs_zfsacl.c',
191 deps
='NFS4_ACLS sunacl',
193 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
194 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
196 bld
.SAMBA3_MODULE('vfs_nfs4acl_xattr',
198 source
='vfs_nfs4acl_xattr.c',
199 deps
='NFS4_ACLS sunacl NDR_NFS4ACL',
201 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_nfs4acl_xattr'),
202 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_nfs4acl_xattr'))
204 bld
.SAMBA3_MODULE('vfs_hpuxacl',
206 source
='vfs_hpuxacl.c',
208 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
209 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
211 bld
.SAMBA3_MODULE('vfs_tru64acl',
213 source
='vfs_tru64acl.c',
215 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
216 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
218 bld
.SAMBA3_MODULE('vfs_catia',
220 source
='vfs_catia.c',
223 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
224 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
226 bld
.SAMBA3_MODULE('vfs_streams_xattr',
228 source
='vfs_streams_xattr.c',
231 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
232 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
234 bld
.SAMBA3_MODULE('vfs_streams_depot',
236 source
='vfs_streams_depot.c',
239 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
240 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
242 bld
.SAMBA3_MODULE('vfs_cacheprime',
244 source
='vfs_cacheprime.c',
247 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
248 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
250 bld
.SAMBA3_MODULE('vfs_prealloc',
252 source
='vfs_prealloc.c',
255 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
256 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
258 bld
.SAMBA3_MODULE('vfs_commit',
260 source
='vfs_commit.c',
263 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
264 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
266 bld
.SAMBA3_MODULE('vfs_gpfs',
268 source
='vfs_gpfs.c gpfs.c',
269 deps
='NFS4_ACLS non_posix_acls',
271 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
272 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
274 vfs_notify_fam_deps
='samba-util '
275 if bld
.CONFIG_SET('SAMBA_FAM_LIBS'):
276 vfs_notify_fam_deps
+= bld
.CONFIG_GET('SAMBA_FAM_LIBS')
277 bld
.SAMBA3_MODULE('vfs_notify_fam',
279 source
='vfs_notify_fam.c',
280 deps
=vfs_notify_fam_deps
,
282 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
283 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
285 bld
.SAMBA3_MODULE('vfs_readahead',
287 source
='vfs_readahead.c',
290 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
291 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
293 bld
.SAMBA3_MODULE('vfs_tsmsm',
295 source
='vfs_tsmsm.c',
298 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
299 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
301 bld
.SAMBA3_MODULE('vfs_fileid',
303 source
='vfs_fileid.c',
306 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
307 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
309 bld
.SAMBA3_MODULE('vfs_aio_fork',
311 source
='vfs_aio_fork.c',
312 deps
='samba-util tevent',
314 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
315 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
316 allow_undefined_symbols
=True)
318 bld
.SAMBA3_MODULE('vfs_aio_pthread',
320 source
='vfs_aio_pthread.c',
321 deps
='samba-util tevent',
323 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
324 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'),
325 allow_undefined_symbols
=True)
327 bld
.SAMBA3_MODULE('vfs_aio_posix',
329 source
='vfs_aio_posix.c',
330 deps
='samba-util tevent',
332 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_posix'),
333 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_posix'),
334 allow_undefined_symbols
=True)
336 bld
.SAMBA3_MODULE('vfs_aio_linux',
338 source
='vfs_aio_linux.c',
339 deps
='samba-util aio',
341 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
342 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
343 allow_undefined_symbols
=True)
345 bld
.SAMBA3_MODULE('vfs_preopen',
347 source
='vfs_preopen.c',
350 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
351 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
353 bld
.SAMBA3_MODULE('vfs_syncops',
355 source
='vfs_syncops.c',
358 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
359 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
361 bld
.SAMBA3_MODULE('vfs_acl_xattr',
363 source
='vfs_acl_xattr.c',
366 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
367 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
369 bld
.SAMBA3_MODULE('vfs_acl_tdb',
371 source
='vfs_acl_tdb.c',
372 deps
='NDR_XATTR tdb',
374 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
375 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
377 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
379 source
='vfs_smb_traffic_analyzer.c',
382 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
383 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
385 bld
.SAMBA3_MODULE('vfs_dirsort',
387 source
='vfs_dirsort.c',
390 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
391 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
393 bld
.SAMBA3_MODULE('vfs_scannedonly',
395 source
='vfs_scannedonly.c',
398 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
399 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
401 bld
.SAMBA3_MODULE('vfs_crossrename',
403 source
='vfs_crossrename.c',
406 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
407 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
409 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
411 source
='vfs_linux_xfs_sgid.c',
414 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
415 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
417 bld
.SAMBA3_MODULE('vfs_time_audit',
419 source
='vfs_time_audit.c',
422 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
423 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
425 bld
.SAMBA3_MODULE('vfs_media_harmony',
427 source
='vfs_media_harmony.c',
430 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_media_harmony'),
431 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_media_harmony'))
433 bld
.SAMBA3_MODULE('vfs_dfs_samba4',
435 source
='vfs_dfs_samba4.c',
436 deps
='samba-util dfs_server_ad samdb tevent',
438 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED(),
439 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED())
441 bld
.SAMBA3_MODULE('vfs_btrfs',
443 source
='vfs_btrfs.c',
446 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_btrfs'),
447 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_btrfs'))
449 bld
.SAMBA3_SUBSYSTEM('perfcount',
453 bld
.SAMBA3_MODULE('perfcount_test',
454 subsystem
='perfcount',
455 source
='perfcount_test.c',
457 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
458 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))
460 bld
.SAMBA3_MODULE('vfs_ceph',
463 deps
='samba-util cephfs',
465 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_ceph'),
466 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_ceph'),
467 cflags
=bld
.CONFIG_GET('CCFLAGS_CEPHFS'))
469 bld
.SAMBA3_MODULE('vfs_glusterfs',
471 source
='vfs_glusterfs.c',
472 deps
='samba-util gfapi',
474 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_glusterfs'),
475 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs'),
476 allow_undefined_symbols
=False)