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_ONEFS_SRC
= '''vfs_onefs.c onefs_acl.c onefs_system.c
47 onefs_open.c onefs_streams.c onefs_dir.c
48 onefs_cbrl.c onefs_notify.c onefs_config.c'''
49 VFS_ONEFS_SHADOW_COPY_SRC
= 'vfs_onefs_shadow_copy.c onefs_shadow_copy.c'
50 VFS_DIRSORT_SRC
= 'vfs_dirsort.c'
51 VFS_SCANNEDONLY_SRC
= 'vfs_scannedonly.c'
52 VFS_CROSSRENAME_SRC
= 'vfs_crossrename.c'
53 VFS_LINUX_XFS_SGID_SRC
= 'vfs_linux_xfs_sgid.c'
54 VFS_TIME_AUDIT_SRC
= 'vfs_time_audit.c'
57 bld
.SAMBA3_SUBSYSTEM('NFS4_ACLS',
59 deps
='samba-util tdb')
61 bld
.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
62 source
='vfs_aixacl_util.c',
65 bld
.SAMBA3_SUBSYSTEM('vfs',
70 bld
.SAMBA3_MODULE('vfs_default',
72 source
=VFS_DEFAULT_SRC
,
73 deps
='samba-util NDR_DFSBLOBS',
75 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default'),
76 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
78 bld
.SAMBA3_MODULE('vfs_audit',
83 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
84 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
86 bld
.SAMBA3_MODULE('vfs_extd_audit',
88 source
=VFS_EXTD_AUDIT_SRC
,
91 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
92 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
94 bld
.SAMBA3_MODULE('vfs_full_audit',
96 source
=VFS_FULL_AUDIT_SRC
,
99 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
100 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
102 bld
.SAMBA3_MODULE('vfs_fake_perms',
104 source
=VFS_FAKE_PERMS_SRC
,
105 deps
='acl attr samba-util',
107 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
108 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
110 bld
.SAMBA3_MODULE('vfs_recycle',
112 source
=VFS_RECYCLE_SRC
,
115 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
116 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
118 bld
.SAMBA3_MODULE('vfs_netatalk',
120 source
=VFS_NETATALK_SRC
,
123 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
124 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
126 bld
.SAMBA3_MODULE('vfs_default_quota',
128 source
=VFS_DEFAULT_QUOTA_SRC
,
131 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
132 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
134 bld
.SAMBA3_MODULE('vfs_readonly',
136 source
=VFS_READONLY_SRC
,
139 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
140 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
142 bld
.SAMBA3_MODULE('vfs_cap',
147 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
148 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
150 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
152 source
=VFS_EXPAND_MSDFS_SRC
,
155 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
156 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
158 bld
.SAMBA3_MODULE('vfs_shadow_copy',
160 source
=VFS_SHADOW_COPY_SRC
,
163 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
164 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
166 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
168 source
=VFS_SHADOW_COPY2_SRC
,
169 deps
='samba-util tdb',
171 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
172 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
174 bld
.SAMBA3_MODULE('vfs_afsacl',
176 source
=VFS_AFSACL_SRC
,
179 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
180 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
182 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
184 source
=VFS_XATTR_TDB_SRC
,
185 deps
='dbwrap xattr_tdb',
187 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
188 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
190 bld
.SAMBA3_MODULE('vfs_posix_eadb',
192 source
='vfs_posix_eadb.c',
193 deps
='tdb-wrap posix_eadb',
195 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posix_eadb'),
196 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posix_eadb'))
198 bld
.SAMBA3_MODULE('vfs_posixacl',
200 source
=VFS_POSIXACL_SRC
,
203 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
204 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
206 bld
.SAMBA3_MODULE('vfs_aixacl',
208 source
=VFS_AIXACL_SRC
,
209 deps
='VFS_AIXACL_UTIL',
211 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
212 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
214 bld
.SAMBA3_MODULE('vfs_aixacl2',
216 source
=VFS_AIXACL2_SRC
,
217 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
219 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
220 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
222 bld
.SAMBA3_MODULE('vfs_solarisacl',
224 source
=VFS_SOLARISACL_SRC
,
226 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
227 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
229 bld
.SAMBA3_MODULE('vfs_zfsacl',
231 source
=VFS_ZFSACL_SRC
,
232 deps
='NFS4_ACLS sunacl',
234 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
235 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
237 bld
.SAMBA3_MODULE('vfs_hpuxacl',
239 source
=VFS_HPUXACL_SRC
,
241 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
242 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
244 bld
.SAMBA3_MODULE('vfs_irixacl',
246 source
=VFS_IRIXACL_SRC
,
248 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_irixacl'),
249 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_irixacl'))
251 bld
.SAMBA3_MODULE('vfs_tru64acl',
253 source
=VFS_TRU64ACL_SRC
,
255 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
256 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
258 bld
.SAMBA3_MODULE('vfs_catia',
260 source
=VFS_CATIA_SRC
,
263 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
264 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
266 bld
.SAMBA3_MODULE('vfs_streams_xattr',
268 source
=VFS_STREAMS_XATTR_SRC
,
271 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
272 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
274 bld
.SAMBA3_MODULE('vfs_streams_depot',
276 source
=VFS_STREAMS_DEPOT_SRC
,
279 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
280 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
282 bld
.SAMBA3_MODULE('vfs_cacheprime',
284 source
=VFS_CACHEPRIME_SRC
,
287 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
288 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
290 bld
.SAMBA3_MODULE('vfs_prealloc',
292 source
=VFS_PREALLOC_SRC
,
295 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
296 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
298 bld
.SAMBA3_MODULE('vfs_commit',
300 source
=VFS_COMMIT_SRC
,
303 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
304 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
306 bld
.SAMBA3_MODULE('vfs_gpfs',
311 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
312 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
314 bld
.SAMBA3_MODULE('vfs_gpfs_hsm_notify',
316 source
=VFS_GPFS_HSM_NOTIFY_SRC
,
318 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs_hsm_notify'),
319 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs_hsm_notify'))
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_linux',
372 source
=VFS_AIO_LINUX_SRC
,
373 deps
='samba-util aio',
375 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_linux'),
376 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_linux'),
377 allow_undefined_symbols
=True)
379 bld
.SAMBA3_MODULE('vfs_preopen',
381 source
=VFS_PREOPEN_SRC
,
384 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
385 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
387 bld
.SAMBA3_MODULE('vfs_syncops',
389 source
=VFS_SYNCOPS_SRC
,
392 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
393 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
395 bld
.SAMBA3_MODULE('vfs_acl_xattr',
397 source
=VFS_ACL_XATTR_SRC
,
400 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
401 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
403 bld
.SAMBA3_MODULE('vfs_acl_tdb',
405 source
=VFS_ACL_TDB_SRC
,
406 deps
='NDR_XATTR tdb',
408 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
409 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
411 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
413 source
=VFS_SMB_TRAFFIC_ANALYZER_SRC
,
416 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
417 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
419 bld
.SAMBA3_MODULE('vfs_onefs',
421 source
=VFS_ONEFS_SRC
,
424 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs'),
425 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs'))
427 bld
.SAMBA3_MODULE('vfs_onefs_shadow_copy',
429 source
=VFS_ONEFS_SHADOW_COPY_SRC
,
432 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs_shadow_copy'),
433 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs_shadow_copy'))
435 bld
.SAMBA3_MODULE('vfs_dirsort',
437 source
=VFS_DIRSORT_SRC
,
440 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
441 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
443 bld
.SAMBA3_MODULE('vfs_scannedonly',
445 source
=VFS_SCANNEDONLY_SRC
,
448 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
449 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
451 bld
.SAMBA3_MODULE('vfs_crossrename',
453 source
=VFS_CROSSRENAME_SRC
,
456 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
457 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
459 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
461 source
=VFS_LINUX_XFS_SGID_SRC
,
464 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
465 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
467 bld
.SAMBA3_MODULE('vfs_time_audit',
469 source
=VFS_TIME_AUDIT_SRC
,
472 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
473 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
475 bld
.SAMBA3_MODULE('vfs_dfs_samba4',
477 source
='vfs_dfs_samba4.c',
478 deps
='samba-util dfs_server_ad samdb tevent',
480 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4'),
481 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4'))
483 PERFCOUNT_ONEFS_SRC
= 'perfcount_onefs.c'
484 PERFCOUNT_TEST_SRC
= 'perfcount_test.c'
486 bld
.SAMBA3_SUBSYSTEM('perfcount',
490 bld
.SAMBA3_MODULE('perfcount_onefs',
491 subsystem
='perfcount',
492 source
=PERFCOUNT_ONEFS_SRC
,
494 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_onefs'),
495 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_onefs'))
497 bld
.SAMBA3_MODULE('perfcount_test',
498 subsystem
='perfcount',
499 source
=PERFCOUNT_TEST_SRC
,
501 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
502 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))