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 gpfs.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'))
284 vfs_notify_fam_deps
='samba-util '
285 if bld
.CONFIG_SET('SAMBA_FAM_LIBS'):
286 vfs_notify_fam_deps
+= bld
.CONFIG_GET('SAMBA_FAM_LIBS')
287 bld
.SAMBA3_MODULE('vfs_notify_fam',
289 source
='vfs_notify_fam.c',
290 deps
=vfs_notify_fam_deps
,
292 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
293 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
295 bld
.SAMBA3_MODULE('vfs_readahead',
297 source
='vfs_readahead.c',
300 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
301 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
303 bld
.SAMBA3_MODULE('vfs_tsmsm',
305 source
='vfs_tsmsm.c',
308 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
309 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
311 bld
.SAMBA3_MODULE('vfs_fileid',
313 source
='vfs_fileid.c',
316 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
317 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
319 bld
.SAMBA3_MODULE('vfs_aio_fork',
321 source
='vfs_aio_fork.c',
323 deps
='samba-util tevent',
325 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
326 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
327 allow_undefined_symbols
=True)
329 bld
.SAMBA3_MODULE('vfs_aio_pthread',
331 source
='vfs_aio_pthread.c',
332 deps
='samba-util tevent',
334 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
335 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'),
336 allow_undefined_symbols
=True)
338 bld
.SAMBA3_MODULE('vfs_aio_posix',
340 source
='vfs_aio_posix.c',
341 deps
='samba-util tevent',
343 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_posix'),
344 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_posix'),
345 allow_undefined_symbols
=True)
347 bld
.SAMBA3_MODULE('vfs_aio_linux',
349 source
='vfs_aio_linux.c',
350 deps
='samba-util aio',
352 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
353 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
354 allow_undefined_symbols
=True)
356 bld
.SAMBA3_MODULE('vfs_preopen',
358 source
='vfs_preopen.c',
362 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
363 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
365 bld
.SAMBA3_MODULE('vfs_syncops',
367 source
='vfs_syncops.c',
370 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
371 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
373 bld
.SAMBA3_MODULE('vfs_acl_xattr',
375 source
='vfs_acl_xattr.c',
378 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
379 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
381 bld
.SAMBA3_MODULE('vfs_acl_tdb',
383 source
='vfs_acl_tdb.c',
384 deps
='NDR_XATTR tdb',
386 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
387 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
389 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
391 source
='vfs_smb_traffic_analyzer.c',
395 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
396 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
398 bld
.SAMBA3_MODULE('vfs_dirsort',
400 source
='vfs_dirsort.c',
403 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
404 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
406 bld
.SAMBA3_MODULE('vfs_scannedonly',
408 source
='vfs_scannedonly.c',
411 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
412 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
414 bld
.SAMBA3_MODULE('vfs_crossrename',
416 source
='vfs_crossrename.c',
419 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
420 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
422 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
424 source
='vfs_linux_xfs_sgid.c',
427 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
428 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
430 bld
.SAMBA3_MODULE('vfs_time_audit',
432 source
='vfs_time_audit.c',
435 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
436 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
438 bld
.SAMBA3_MODULE('vfs_media_harmony',
440 source
='vfs_media_harmony.c',
443 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_media_harmony'),
444 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_media_harmony'))
446 bld
.SAMBA3_MODULE('vfs_unityed_media',
448 source
='vfs_unityed_media.c',
452 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_unityed_media'),
453 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_unityed_media'))
455 bld
.SAMBA3_MODULE('vfs_dfs_samba4',
457 source
='vfs_dfs_samba4.c',
458 deps
='samba-util dfs_server_ad samdb tevent',
460 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED(),
461 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED())
463 bld
.SAMBA3_MODULE('vfs_btrfs',
465 source
='vfs_btrfs.c',
468 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_btrfs'),
469 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_btrfs'))
471 bld
.SAMBA3_SUBSYSTEM('perfcount',
475 bld
.SAMBA3_MODULE('perfcount_test',
476 subsystem
='perfcount',
477 source
='perfcount_test.c',
479 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
480 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))
482 bld
.SAMBA3_MODULE('vfs_ceph',
485 deps
='samba-util cephfs',
487 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_ceph'),
488 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_ceph'),
489 cflags
=bld
.CONFIG_GET('CCFLAGS_CEPHFS'))
491 bld
.SAMBA3_MODULE('vfs_glusterfs',
493 source
='vfs_glusterfs.c',
494 deps
='samba-util gfapi',
496 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_glusterfs'),
497 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_glusterfs'),
498 allow_undefined_symbols
=False)
500 bld
.SAMBA3_MODULE('vfs_worm',
505 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_worm'),
506 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_worm'))
508 bld
.SAMBA3_MODULE('vfs_snapper',
510 source
='vfs_snapper.c',
511 deps
='samba-util dbus-1',
513 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_snapper'),
514 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_snapper'))
516 bld
.SAMBA3_MODULE('vfs_vxfs',
520 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_vxfs'),
521 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_vxfs'))