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_RECYCLE_SRC
= '''vfs_recycle.c'''
9 VFS_NETATALK_SRC
= '''vfs_netatalk.c'''
10 VFS_DEFAULT_QUOTA_SRC
= '''vfs_default_quota.c'''
11 VFS_READONLY_SRC
= '''vfs_readonly.c getdate.c'''
12 VFS_CAP_SRC
= '''vfs_cap.c'''
13 VFS_EXPAND_MSDFS_SRC
= '''vfs_expand_msdfs.c'''
14 VFS_SHADOW_COPY_SRC
= '''vfs_shadow_copy.c'''
15 VFS_SHADOW_COPY2_SRC
= '''vfs_shadow_copy2.c'''
16 VFS_AFSACL_SRC
= '''vfs_afsacl.c'''
17 VFS_XATTR_TDB_SRC
= '''vfs_xattr_tdb.c'''
18 VFS_POSIXACL_SRC
= '''vfs_posixacl.c'''
19 VFS_AIXACL_SRC
= '''vfs_aixacl.c'''
20 VFS_AIXACL2_SRC
= '''vfs_aixacl2.c'''
21 VFS_SOLARISACL_SRC
= '''vfs_solarisacl.c'''
22 VFS_ZFSACL_SRC
= '''vfs_zfsacl.c'''
23 VFS_HPUXACL_SRC
= '''vfs_hpuxacl.c'''
24 VFS_IRIXACL_SRC
= '''vfs_irixacl.c'''
25 VFS_TRU64ACL_SRC
= '''vfs_tru64acl.c'''
26 VFS_CATIA_SRC
= 'vfs_catia.c'
27 VFS_STREAMS_XATTR_SRC
= 'vfs_streams_xattr.c'
28 VFS_STREAMS_DEPOT_SRC
= 'vfs_streams_depot.c'
29 VFS_CACHEPRIME_SRC
= 'vfs_cacheprime.c'
30 VFS_PREALLOC_SRC
= 'vfs_prealloc.c'
31 VFS_COMMIT_SRC
= 'vfs_commit.c'
32 VFS_GPFS_SRC
= 'vfs_gpfs.c gpfs.c'
33 VFS_GPFS_HSM_NOTIFY_SRC
= 'vfs_gpfs_hsm_notify.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_LINUX_SRC
= 'vfs_aio_linux.c'
41 VFS_PREOPEN_SRC
= 'vfs_preopen.c'
42 VFS_SYNCOPS_SRC
= 'vfs_syncops.c'
43 VFS_ACL_XATTR_SRC
= 'vfs_acl_xattr.c'
44 VFS_ACL_TDB_SRC
= 'vfs_acl_tdb.c'
45 VFS_SMB_TRAFFIC_ANALYZER_SRC
= 'vfs_smb_traffic_analyzer.c'
46 VFS_DIRSORT_SRC
= 'vfs_dirsort.c'
47 VFS_SCANNEDONLY_SRC
= 'vfs_scannedonly.c'
48 VFS_CROSSRENAME_SRC
= 'vfs_crossrename.c'
49 VFS_LINUX_XFS_SGID_SRC
= 'vfs_linux_xfs_sgid.c'
50 VFS_TIME_AUDIT_SRC
= 'vfs_time_audit.c'
53 bld
.SAMBA3_SUBSYSTEM('NFS4_ACLS',
55 deps
='samba-util tdb')
57 bld
.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
58 source
='vfs_aixacl_util.c',
61 bld
.SAMBA3_SUBSYSTEM('vfs',
66 bld
.SAMBA3_MODULE('vfs_default',
68 source
=VFS_DEFAULT_SRC
,
69 deps
='samba-util NDR_DFSBLOBS',
71 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default'),
72 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
74 bld
.SAMBA3_MODULE('vfs_audit',
79 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
80 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
82 bld
.SAMBA3_MODULE('vfs_extd_audit',
84 source
=VFS_EXTD_AUDIT_SRC
,
87 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
88 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
90 bld
.SAMBA3_MODULE('vfs_full_audit',
92 source
=VFS_FULL_AUDIT_SRC
,
95 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
96 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
98 bld
.SAMBA3_MODULE('vfs_fake_perms',
100 source
=VFS_FAKE_PERMS_SRC
,
101 deps
='acl attr samba-util',
103 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
104 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
106 bld
.SAMBA3_MODULE('vfs_recycle',
108 source
=VFS_RECYCLE_SRC
,
111 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
112 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
114 bld
.SAMBA3_MODULE('vfs_netatalk',
116 source
=VFS_NETATALK_SRC
,
119 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
120 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
122 bld
.SAMBA3_MODULE('vfs_default_quota',
124 source
=VFS_DEFAULT_QUOTA_SRC
,
127 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
128 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
130 bld
.SAMBA3_MODULE('vfs_readonly',
132 source
=VFS_READONLY_SRC
,
135 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
136 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
138 bld
.SAMBA3_MODULE('vfs_cap',
143 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
144 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
146 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
148 source
=VFS_EXPAND_MSDFS_SRC
,
151 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
152 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
154 bld
.SAMBA3_MODULE('vfs_shadow_copy',
156 source
=VFS_SHADOW_COPY_SRC
,
159 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
160 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
162 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
164 source
=VFS_SHADOW_COPY2_SRC
,
165 deps
='samba-util tdb',
167 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
168 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
170 bld
.SAMBA3_MODULE('vfs_afsacl',
172 source
=VFS_AFSACL_SRC
,
175 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
176 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
178 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
180 source
=VFS_XATTR_TDB_SRC
,
181 deps
='dbwrap xattr_tdb',
183 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
184 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
186 bld
.SAMBA3_MODULE('vfs_posix_eadb',
188 source
='vfs_posix_eadb.c',
189 deps
='tdb-wrap posix_eadb',
191 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED(),
192 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb') and bld
.AD_DC_BUILD_IS_ENABLED())
194 bld
.SAMBA3_MODULE('vfs_posixacl',
196 source
=VFS_POSIXACL_SRC
,
199 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
200 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
202 bld
.SAMBA3_MODULE('vfs_aixacl',
204 source
=VFS_AIXACL_SRC
,
205 deps
='VFS_AIXACL_UTIL',
207 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
208 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
210 bld
.SAMBA3_MODULE('vfs_aixacl2',
212 source
=VFS_AIXACL2_SRC
,
213 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
215 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
216 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
218 bld
.SAMBA3_MODULE('vfs_solarisacl',
220 source
=VFS_SOLARISACL_SRC
,
222 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
223 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
225 bld
.SAMBA3_MODULE('vfs_zfsacl',
227 source
=VFS_ZFSACL_SRC
,
228 deps
='NFS4_ACLS sunacl',
230 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
231 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
233 bld
.SAMBA3_MODULE('vfs_hpuxacl',
235 source
=VFS_HPUXACL_SRC
,
237 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
238 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
240 bld
.SAMBA3_MODULE('vfs_irixacl',
242 source
=VFS_IRIXACL_SRC
,
244 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_irixacl'),
245 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_irixacl'))
247 bld
.SAMBA3_MODULE('vfs_tru64acl',
249 source
=VFS_TRU64ACL_SRC
,
251 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
252 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
254 bld
.SAMBA3_MODULE('vfs_catia',
256 source
=VFS_CATIA_SRC
,
259 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
260 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
262 bld
.SAMBA3_MODULE('vfs_streams_xattr',
264 source
=VFS_STREAMS_XATTR_SRC
,
267 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
268 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
270 bld
.SAMBA3_MODULE('vfs_streams_depot',
272 source
=VFS_STREAMS_DEPOT_SRC
,
275 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
276 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
278 bld
.SAMBA3_MODULE('vfs_cacheprime',
280 source
=VFS_CACHEPRIME_SRC
,
283 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
284 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
286 bld
.SAMBA3_MODULE('vfs_prealloc',
288 source
=VFS_PREALLOC_SRC
,
291 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
292 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
294 bld
.SAMBA3_MODULE('vfs_commit',
296 source
=VFS_COMMIT_SRC
,
299 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
300 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
302 bld
.SAMBA3_MODULE('vfs_gpfs',
307 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
308 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
310 bld
.SAMBA3_MODULE('vfs_gpfs_hsm_notify',
312 source
=VFS_GPFS_HSM_NOTIFY_SRC
,
314 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs_hsm_notify'),
315 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs_hsm_notify'))
317 bld
.SAMBA3_MODULE('vfs_notify_fam',
319 source
=VFS_NOTIFY_FAM_SRC
,
321 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
322 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
324 bld
.SAMBA3_MODULE('vfs_readahead',
326 source
=VFS_READAHEAD_SRC
,
329 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
330 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
332 bld
.SAMBA3_MODULE('vfs_tsmsm',
334 source
=VFS_TSMSM_SRC
,
337 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
338 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
340 bld
.SAMBA3_MODULE('vfs_fileid',
342 source
=VFS_FILEID_SRC
,
345 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
346 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
348 bld
.SAMBA3_MODULE('vfs_aio_fork',
350 source
=VFS_AIO_FORK_SRC
,
351 deps
='samba-util tevent',
353 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
354 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
355 allow_undefined_symbols
=True)
357 bld
.SAMBA3_MODULE('vfs_aio_pthread',
359 source
=VFS_AIO_PTHREAD_SRC
,
360 deps
='samba-util tevent',
362 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_pthread'),
363 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_pthread'),
364 allow_undefined_symbols
=True)
366 bld
.SAMBA3_MODULE('vfs_aio_linux',
368 source
=VFS_AIO_LINUX_SRC
,
369 deps
='samba-util aio',
371 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
372 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
373 allow_undefined_symbols
=True)
375 bld
.SAMBA3_MODULE('vfs_preopen',
377 source
=VFS_PREOPEN_SRC
,
380 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
381 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
383 bld
.SAMBA3_MODULE('vfs_syncops',
385 source
=VFS_SYNCOPS_SRC
,
388 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
389 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
391 bld
.SAMBA3_MODULE('vfs_acl_xattr',
393 source
=VFS_ACL_XATTR_SRC
,
396 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
397 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
399 bld
.SAMBA3_MODULE('vfs_acl_tdb',
401 source
=VFS_ACL_TDB_SRC
,
402 deps
='NDR_XATTR tdb',
404 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
405 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
407 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
409 source
=VFS_SMB_TRAFFIC_ANALYZER_SRC
,
412 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
413 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
415 bld
.SAMBA3_MODULE('vfs_dirsort',
417 source
=VFS_DIRSORT_SRC
,
420 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
421 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
423 bld
.SAMBA3_MODULE('vfs_scannedonly',
425 source
=VFS_SCANNEDONLY_SRC
,
428 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
429 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
431 bld
.SAMBA3_MODULE('vfs_crossrename',
433 source
=VFS_CROSSRENAME_SRC
,
436 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
437 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
439 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
441 source
=VFS_LINUX_XFS_SGID_SRC
,
444 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
445 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
447 bld
.SAMBA3_MODULE('vfs_time_audit',
449 source
=VFS_TIME_AUDIT_SRC
,
452 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
453 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
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 PERFCOUNT_TEST_SRC
= 'perfcount_test.c'
465 bld
.SAMBA3_SUBSYSTEM('perfcount',
469 bld
.SAMBA3_MODULE('perfcount_test',
470 subsystem
='perfcount',
471 source
=PERFCOUNT_TEST_SRC
,
473 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
474 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))