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_fruit',
89 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fruit'),
90 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fruit'))
92 bld
.SAMBA3_MODULE('vfs_default_quota',
94 source
='vfs_default_quota.c',
97 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
98 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
100 bld
.SAMBA3_MODULE('vfs_readonly',
102 source
='vfs_readonly.c getdate.c',
105 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
106 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
108 bld
.SAMBA3_MODULE('vfs_cap',
113 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
114 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
116 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
118 source
='vfs_expand_msdfs.c',
121 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
122 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
124 bld
.SAMBA3_MODULE('vfs_shadow_copy',
126 source
='vfs_shadow_copy.c',
129 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
130 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
132 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
134 source
='vfs_shadow_copy2.c',
136 deps
='samba-util tdb',
138 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
139 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
141 bld
.SAMBA3_MODULE('vfs_afsacl',
143 source
='vfs_afsacl.c',
146 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
147 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
149 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
151 source
='vfs_xattr_tdb.c',
152 deps
='dbwrap xattr_tdb',
154 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
155 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
157 bld
.SAMBA3_MODULE('vfs_posix_eadb',
159 source
='vfs_posix_eadb.c',
160 deps
='tdb-wrap posix_eadb',
162 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED(),
163 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED())
165 bld
.SAMBA3_MODULE('vfs_posixacl',
167 source
='vfs_posixacl.c',
170 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
171 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
173 bld
.SAMBA3_MODULE('vfs_aixacl',
175 source
='vfs_aixacl.c',
176 deps
='VFS_AIXACL_UTIL',
178 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
179 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
181 bld
.SAMBA3_MODULE('vfs_aixacl2',
183 source
='vfs_aixacl2.c',
184 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
186 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
187 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
189 bld
.SAMBA3_MODULE('vfs_solarisacl',
191 source
='vfs_solarisacl.c',
194 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
195 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
197 bld
.SAMBA3_MODULE('vfs_zfsacl',
199 source
='vfs_zfsacl.c',
200 deps
='NFS4_ACLS sunacl',
202 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
203 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
205 bld
.SAMBA3_MODULE('vfs_nfs4acl_xattr',
207 source
='vfs_nfs4acl_xattr.c',
209 deps
='NFS4_ACLS sunacl NDR_NFS4ACL',
211 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_nfs4acl_xattr'),
212 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_nfs4acl_xattr'))
214 bld
.SAMBA3_MODULE('vfs_hpuxacl',
216 source
='vfs_hpuxacl.c',
218 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
219 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
221 bld
.SAMBA3_MODULE('vfs_tru64acl',
223 source
='vfs_tru64acl.c',
225 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
226 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
228 bld
.SAMBA3_MODULE('vfs_catia',
230 source
='vfs_catia.c',
233 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
234 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
236 bld
.SAMBA3_MODULE('vfs_streams_xattr',
238 source
='vfs_streams_xattr.c',
241 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
242 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
244 bld
.SAMBA3_MODULE('vfs_streams_depot',
246 source
='vfs_streams_depot.c',
249 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
250 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
252 bld
.SAMBA3_MODULE('vfs_cacheprime',
254 source
='vfs_cacheprime.c',
257 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
258 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
260 bld
.SAMBA3_MODULE('vfs_prealloc',
262 source
='vfs_prealloc.c',
265 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
266 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
268 bld
.SAMBA3_MODULE('vfs_commit',
270 source
='vfs_commit.c',
273 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
274 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
276 bld
.SAMBA3_MODULE('vfs_gpfs',
278 source
='vfs_gpfs.c gpfswrap.c',
279 deps
='NFS4_ACLS non_posix_acls',
281 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
282 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'),
283 includes
=bld
.CONFIG_GET('CPPPATH_GPFS'))
285 vfs_notify_fam_deps
='samba-util '
286 if bld
.CONFIG_SET('SAMBA_FAM_LIBS'):
287 vfs_notify_fam_deps
+= bld
.CONFIG_GET('SAMBA_FAM_LIBS')
288 bld
.SAMBA3_MODULE('vfs_notify_fam',
290 source
='vfs_notify_fam.c',
291 deps
=vfs_notify_fam_deps
,
293 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
294 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
296 bld
.SAMBA3_MODULE('vfs_readahead',
298 source
='vfs_readahead.c',
301 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
302 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
304 bld
.SAMBA3_MODULE('vfs_tsmsm',
306 source
='vfs_tsmsm.c',
309 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
310 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
312 bld
.SAMBA3_MODULE('vfs_fileid',
314 source
='vfs_fileid.c',
317 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
318 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
320 bld
.SAMBA3_MODULE('vfs_aio_fork',
322 source
='vfs_aio_fork.c',
324 deps
='samba-util tevent',
326 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
327 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
328 allow_undefined_symbols
=True)
330 bld
.SAMBA3_MODULE('vfs_aio_pthread',
332 source
='vfs_aio_pthread.c',
333 deps
='samba-util tevent',
335 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
336 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'),
337 allow_undefined_symbols
=True)
339 bld
.SAMBA3_MODULE('vfs_aio_posix',
341 source
='vfs_aio_posix.c',
342 deps
='samba-util tevent',
344 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_posix'),
345 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_posix'),
346 allow_undefined_symbols
=True)
348 bld
.SAMBA3_MODULE('vfs_aio_linux',
350 source
='vfs_aio_linux.c',
351 deps
='samba-util aio',
353 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
354 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
355 allow_undefined_symbols
=True)
357 bld
.SAMBA3_MODULE('vfs_preopen',
359 source
='vfs_preopen.c',
363 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
364 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
366 bld
.SAMBA3_MODULE('vfs_syncops',
368 source
='vfs_syncops.c',
371 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
372 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
374 bld
.SAMBA3_MODULE('vfs_acl_xattr',
376 source
='vfs_acl_xattr.c',
379 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
380 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
382 bld
.SAMBA3_MODULE('vfs_acl_tdb',
384 source
='vfs_acl_tdb.c',
385 deps
='NDR_XATTR tdb',
387 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
388 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
390 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
392 source
='vfs_smb_traffic_analyzer.c',
396 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
397 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
399 bld
.SAMBA3_MODULE('vfs_dirsort',
401 source
='vfs_dirsort.c',
404 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
405 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
407 bld
.SAMBA3_MODULE('vfs_scannedonly',
409 source
='vfs_scannedonly.c',
412 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
413 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
415 bld
.SAMBA3_MODULE('vfs_crossrename',
417 source
='vfs_crossrename.c',
420 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
421 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
423 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
425 source
='vfs_linux_xfs_sgid.c',
428 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
429 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
431 bld
.SAMBA3_MODULE('vfs_time_audit',
433 source
='vfs_time_audit.c',
436 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
437 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
439 bld
.SAMBA3_MODULE('vfs_media_harmony',
441 source
='vfs_media_harmony.c',
444 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_media_harmony'),
445 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_media_harmony'))
447 bld
.SAMBA3_MODULE('vfs_unityed_media',
449 source
='vfs_unityed_media.c',
453 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_unityed_media'),
454 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_unityed_media'))
456 bld
.SAMBA3_MODULE('vfs_dfs_samba4',
458 source
='vfs_dfs_samba4.c',
459 deps
='samba-util dfs_server_ad samdb tevent',
461 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED(),
462 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED())
464 bld
.SAMBA3_MODULE('vfs_btrfs',
466 source
='vfs_btrfs.c',
469 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_btrfs'),
470 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_btrfs'))
472 bld
.SAMBA3_SUBSYSTEM('perfcount',
476 bld
.SAMBA3_MODULE('perfcount_test',
477 subsystem
='perfcount',
478 source
='perfcount_test.c',
480 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
481 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))
483 bld
.SAMBA3_MODULE('vfs_ceph',
486 deps
='samba-util cephfs',
488 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_ceph'),
489 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_ceph'),
490 cflags
=bld
.CONFIG_GET('CCFLAGS_CEPHFS'))
492 bld
.SAMBA3_MODULE('vfs_glusterfs',
494 source
='vfs_glusterfs.c',
495 deps
='samba-util gfapi',
497 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_glusterfs'),
498 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs'),
499 allow_undefined_symbols
=False)
501 bld
.SAMBA3_MODULE('vfs_worm',
506 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_worm'),
507 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_worm'))
509 bld
.SAMBA3_MODULE('vfs_snapper',
511 source
='vfs_snapper.c',
512 deps
='samba-util dbus-1',
514 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_snapper'),
515 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_snapper'))
517 bld
.SAMBA3_MODULE('vfs_vxfs',
521 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_vxfs'),
522 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_vxfs'))