3 VFS_DEFAULT_SRC
= '''vfs_default.c'''
4 VFS_AUDIT_SRC
= '''vfs_audit.c'''
5 VFS_EXTD_AUDIT_SRC
= '''vfs_extd_audit.c'''
6 VFS_FULL_AUDIT_SRC
= '''vfs_full_audit.c'''
7 VFS_FAKE_PERMS_SRC
= '''vfs_fake_perms.c'''
8 VFS_FAKE_ACLS_SRC
= '''vfs_fake_acls.c'''
9 VFS_RECYCLE_SRC
= '''vfs_recycle.c'''
10 VFS_NETATALK_SRC
= '''vfs_netatalk.c'''
11 VFS_DEFAULT_QUOTA_SRC
= '''vfs_default_quota.c'''
12 VFS_READONLY_SRC
= '''vfs_readonly.c getdate.c'''
13 VFS_CAP_SRC
= '''vfs_cap.c'''
14 VFS_EXPAND_MSDFS_SRC
= '''vfs_expand_msdfs.c'''
15 VFS_SHADOW_COPY_SRC
= '''vfs_shadow_copy.c'''
16 VFS_SHADOW_COPY2_SRC
= '''vfs_shadow_copy2.c'''
17 VFS_AFSACL_SRC
= '''vfs_afsacl.c'''
18 VFS_XATTR_TDB_SRC
= '''vfs_xattr_tdb.c'''
19 VFS_POSIXACL_SRC
= '''vfs_posixacl.c'''
20 VFS_AIXACL_SRC
= '''vfs_aixacl.c'''
21 VFS_AIXACL2_SRC
= '''vfs_aixacl2.c'''
22 VFS_SOLARISACL_SRC
= '''vfs_solarisacl.c'''
23 VFS_ZFSACL_SRC
= '''vfs_zfsacl.c'''
24 VFS_HPUXACL_SRC
= '''vfs_hpuxacl.c'''
25 VFS_IRIXACL_SRC
= '''vfs_irixacl.c'''
26 VFS_TRU64ACL_SRC
= '''vfs_tru64acl.c'''
27 VFS_CATIA_SRC
= 'vfs_catia.c'
28 VFS_STREAMS_XATTR_SRC
= 'vfs_streams_xattr.c'
29 VFS_STREAMS_DEPOT_SRC
= 'vfs_streams_depot.c'
30 VFS_CACHEPRIME_SRC
= 'vfs_cacheprime.c'
31 VFS_PREALLOC_SRC
= 'vfs_prealloc.c'
32 VFS_COMMIT_SRC
= 'vfs_commit.c'
33 VFS_GPFS_SRC
= 'vfs_gpfs.c gpfs.c'
34 VFS_NOTIFY_FAM_SRC
= 'vfs_notify_fam.c'
35 VFS_READAHEAD_SRC
= 'vfs_readahead.c'
36 VFS_TSMSM_SRC
= 'vfs_tsmsm.c'
37 VFS_FILEID_SRC
= 'vfs_fileid.c'
38 VFS_AIO_FORK_SRC
= 'vfs_aio_fork.c'
39 VFS_AIO_PTHREAD_SRC
= 'vfs_aio_pthread.c'
40 VFS_AIO_POSIX_SRC
= 'vfs_aio_posix.c'
41 VFS_AIO_LINUX_SRC
= 'vfs_aio_linux.c'
42 VFS_PREOPEN_SRC
= 'vfs_preopen.c'
43 VFS_SYNCOPS_SRC
= 'vfs_syncops.c'
44 VFS_ACL_XATTR_SRC
= 'vfs_acl_xattr.c'
45 VFS_ACL_TDB_SRC
= 'vfs_acl_tdb.c'
46 VFS_SMB_TRAFFIC_ANALYZER_SRC
= 'vfs_smb_traffic_analyzer.c'
47 VFS_DIRSORT_SRC
= 'vfs_dirsort.c'
48 VFS_SCANNEDONLY_SRC
= 'vfs_scannedonly.c'
49 VFS_CROSSRENAME_SRC
= 'vfs_crossrename.c'
50 VFS_LINUX_XFS_SGID_SRC
= 'vfs_linux_xfs_sgid.c'
51 VFS_TIME_AUDIT_SRC
= 'vfs_time_audit.c'
52 VFS_MEDIA_HARMONY_SRC
= 'vfs_media_harmony.c'
55 bld
.SAMBA3_SUBSYSTEM('NFS4_ACLS',
57 deps
='samba-util tdb')
59 bld
.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
60 source
='vfs_aixacl_util.c',
63 bld
.SAMBA3_SUBSYSTEM('vfs',
68 bld
.SAMBA3_MODULE('vfs_default',
70 source
=VFS_DEFAULT_SRC
,
71 deps
='samba-util NDR_DFSBLOBS',
73 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default'),
74 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
76 bld
.SAMBA3_MODULE('vfs_audit',
81 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
82 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
84 bld
.SAMBA3_MODULE('vfs_extd_audit',
86 source
=VFS_EXTD_AUDIT_SRC
,
89 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
90 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
92 bld
.SAMBA3_MODULE('vfs_full_audit',
94 source
=VFS_FULL_AUDIT_SRC
,
97 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
98 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
100 bld
.SAMBA3_MODULE('vfs_fake_perms',
102 source
=VFS_FAKE_PERMS_SRC
,
105 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
106 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
108 bld
.SAMBA3_MODULE('vfs_fake_acls',
110 source
=VFS_FAKE_ACLS_SRC
,
113 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_acls'),
114 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_acls'))
116 bld
.SAMBA3_MODULE('vfs_recycle',
118 source
=VFS_RECYCLE_SRC
,
121 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
122 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
124 bld
.SAMBA3_MODULE('vfs_netatalk',
126 source
=VFS_NETATALK_SRC
,
129 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
130 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
132 bld
.SAMBA3_MODULE('vfs_default_quota',
134 source
=VFS_DEFAULT_QUOTA_SRC
,
137 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
138 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
140 bld
.SAMBA3_MODULE('vfs_readonly',
142 source
=VFS_READONLY_SRC
,
145 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
146 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
148 bld
.SAMBA3_MODULE('vfs_cap',
153 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
154 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
156 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
158 source
=VFS_EXPAND_MSDFS_SRC
,
161 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
162 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
164 bld
.SAMBA3_MODULE('vfs_shadow_copy',
166 source
=VFS_SHADOW_COPY_SRC
,
169 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
170 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
172 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
174 source
=VFS_SHADOW_COPY2_SRC
,
175 deps
='samba-util tdb',
177 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
178 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
180 bld
.SAMBA3_MODULE('vfs_afsacl',
182 source
=VFS_AFSACL_SRC
,
185 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
186 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
188 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
190 source
=VFS_XATTR_TDB_SRC
,
191 deps
='dbwrap xattr_tdb',
193 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
194 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
196 bld
.SAMBA3_MODULE('vfs_posix_eadb',
198 source
='vfs_posix_eadb.c',
199 deps
='tdb-wrap posix_eadb',
201 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED(),
202 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED())
204 bld
.SAMBA3_MODULE('vfs_posixacl',
206 source
=VFS_POSIXACL_SRC
,
209 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
210 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
212 bld
.SAMBA3_MODULE('vfs_aixacl',
214 source
=VFS_AIXACL_SRC
,
215 deps
='VFS_AIXACL_UTIL',
217 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
218 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
220 bld
.SAMBA3_MODULE('vfs_aixacl2',
222 source
=VFS_AIXACL2_SRC
,
223 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
225 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
226 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
228 bld
.SAMBA3_MODULE('vfs_solarisacl',
230 source
=VFS_SOLARISACL_SRC
,
233 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
234 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
236 bld
.SAMBA3_MODULE('vfs_zfsacl',
238 source
=VFS_ZFSACL_SRC
,
239 deps
='NFS4_ACLS sunacl',
241 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
242 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
244 bld
.SAMBA3_MODULE('vfs_hpuxacl',
246 source
=VFS_HPUXACL_SRC
,
248 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
249 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
251 bld
.SAMBA3_MODULE('vfs_irixacl',
253 source
=VFS_IRIXACL_SRC
,
255 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_irixacl'),
256 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_irixacl'))
258 bld
.SAMBA3_MODULE('vfs_tru64acl',
260 source
=VFS_TRU64ACL_SRC
,
262 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
263 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
265 bld
.SAMBA3_MODULE('vfs_catia',
267 source
=VFS_CATIA_SRC
,
270 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
271 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
273 bld
.SAMBA3_MODULE('vfs_streams_xattr',
275 source
=VFS_STREAMS_XATTR_SRC
,
278 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
279 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
281 bld
.SAMBA3_MODULE('vfs_streams_depot',
283 source
=VFS_STREAMS_DEPOT_SRC
,
286 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
287 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
289 bld
.SAMBA3_MODULE('vfs_cacheprime',
291 source
=VFS_CACHEPRIME_SRC
,
294 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
295 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
297 bld
.SAMBA3_MODULE('vfs_prealloc',
299 source
=VFS_PREALLOC_SRC
,
302 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
303 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
305 bld
.SAMBA3_MODULE('vfs_commit',
307 source
=VFS_COMMIT_SRC
,
310 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
311 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
313 bld
.SAMBA3_MODULE('vfs_gpfs',
318 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
319 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
321 bld
.SAMBA3_MODULE('vfs_notify_fam',
323 source
=VFS_NOTIFY_FAM_SRC
,
325 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
326 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
328 bld
.SAMBA3_MODULE('vfs_readahead',
330 source
=VFS_READAHEAD_SRC
,
333 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
334 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
336 bld
.SAMBA3_MODULE('vfs_tsmsm',
338 source
=VFS_TSMSM_SRC
,
341 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
342 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
344 bld
.SAMBA3_MODULE('vfs_fileid',
346 source
=VFS_FILEID_SRC
,
349 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
350 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
352 bld
.SAMBA3_MODULE('vfs_aio_fork',
354 source
=VFS_AIO_FORK_SRC
,
355 deps
='samba-util tevent',
357 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
358 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
359 allow_undefined_symbols
=True)
361 bld
.SAMBA3_MODULE('vfs_aio_pthread',
363 source
=VFS_AIO_PTHREAD_SRC
,
364 deps
='samba-util tevent',
366 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
367 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'),
368 allow_undefined_symbols
=True)
370 bld
.SAMBA3_MODULE('vfs_aio_posix',
372 source
=VFS_AIO_POSIX_SRC
,
373 deps
='samba-util tevent',
375 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_posix'),
376 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_posix'),
377 allow_undefined_symbols
=True)
379 bld
.SAMBA3_MODULE('vfs_aio_linux',
381 source
=VFS_AIO_LINUX_SRC
,
382 deps
='samba-util aio',
384 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
385 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
386 allow_undefined_symbols
=True)
388 bld
.SAMBA3_MODULE('vfs_preopen',
390 source
=VFS_PREOPEN_SRC
,
393 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
394 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
396 bld
.SAMBA3_MODULE('vfs_syncops',
398 source
=VFS_SYNCOPS_SRC
,
401 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
402 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
404 bld
.SAMBA3_MODULE('vfs_acl_xattr',
406 source
=VFS_ACL_XATTR_SRC
,
409 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
410 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
412 bld
.SAMBA3_MODULE('vfs_acl_tdb',
414 source
=VFS_ACL_TDB_SRC
,
415 deps
='NDR_XATTR tdb',
417 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
418 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
420 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
422 source
=VFS_SMB_TRAFFIC_ANALYZER_SRC
,
425 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
426 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
428 bld
.SAMBA3_MODULE('vfs_dirsort',
430 source
=VFS_DIRSORT_SRC
,
433 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
434 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
436 bld
.SAMBA3_MODULE('vfs_scannedonly',
438 source
=VFS_SCANNEDONLY_SRC
,
441 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
442 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
444 bld
.SAMBA3_MODULE('vfs_crossrename',
446 source
=VFS_CROSSRENAME_SRC
,
449 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
450 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
452 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
454 source
=VFS_LINUX_XFS_SGID_SRC
,
457 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
458 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
460 bld
.SAMBA3_MODULE('vfs_time_audit',
462 source
=VFS_TIME_AUDIT_SRC
,
465 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
466 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
468 bld
.SAMBA3_MODULE('vfs_media_harmony',
470 source
=VFS_MEDIA_HARMONY_SRC
,
473 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_media_harmony'),
474 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_media_harmony'))
476 bld
.SAMBA3_MODULE('vfs_dfs_samba4',
478 source
='vfs_dfs_samba4.c',
479 deps
='samba-util dfs_server_ad samdb tevent',
481 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED(),
482 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4') and bld
.AD_DC_BUILD_IS_ENABLED())
484 PERFCOUNT_TEST_SRC
= 'perfcount_test.c'
486 bld
.SAMBA3_SUBSYSTEM('perfcount',
490 bld
.SAMBA3_MODULE('perfcount_test',
491 subsystem
='perfcount',
492 source
=PERFCOUNT_TEST_SRC
,
494 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
495 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))