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_PREOPEN_SRC
= 'vfs_preopen.c'
40 VFS_SYNCOPS_SRC
= 'vfs_syncops.c'
41 VFS_ACL_XATTR_SRC
= 'vfs_acl_xattr.c'
42 VFS_ACL_TDB_SRC
= 'vfs_acl_tdb.c'
43 VFS_SMB_TRAFFIC_ANALYZER_SRC
= 'vfs_smb_traffic_analyzer.c'
44 VFS_ONEFS_SRC
= '''vfs_onefs.c onefs_acl.c onefs_system.c
45 onefs_open.c onefs_streams.c onefs_dir.c
46 onefs_cbrl.c onefs_notify.c onefs_config.c'''
47 VFS_ONEFS_SHADOW_COPY_SRC
= 'vfs_onefs_shadow_copy.c onefs_shadow_copy.c'
48 VFS_DIRSORT_SRC
= 'vfs_dirsort.c'
49 VFS_SCANNEDONLY_SRC
= 'vfs_scannedonly.c'
50 VFS_CROSSRENAME_SRC
= 'vfs_crossrename.c'
51 VFS_LINUX_XFS_SGID_SRC
= 'vfs_linux_xfs_sgid.c'
52 VFS_TIME_AUDIT_SRC
= 'vfs_time_audit.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
,
103 deps
='acl attr samba-util',
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_recycle',
110 source
=VFS_RECYCLE_SRC
,
113 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
114 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
116 bld
.SAMBA3_MODULE('vfs_netatalk',
118 source
=VFS_NETATALK_SRC
,
121 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
122 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
124 bld
.SAMBA3_MODULE('vfs_default_quota',
126 source
=VFS_DEFAULT_QUOTA_SRC
,
129 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
130 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
132 bld
.SAMBA3_MODULE('vfs_readonly',
134 source
=VFS_READONLY_SRC
,
137 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
138 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
140 bld
.SAMBA3_MODULE('vfs_cap',
145 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
146 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
148 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
150 source
=VFS_EXPAND_MSDFS_SRC
,
153 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
154 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
156 bld
.SAMBA3_MODULE('vfs_shadow_copy',
158 source
=VFS_SHADOW_COPY_SRC
,
161 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
162 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
164 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
166 source
=VFS_SHADOW_COPY2_SRC
,
167 deps
='samba-util tdb',
169 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
170 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
172 bld
.SAMBA3_MODULE('vfs_afsacl',
174 source
=VFS_AFSACL_SRC
,
177 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
178 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
180 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
182 source
=VFS_XATTR_TDB_SRC
,
183 deps
='NDR_XATTR tdb',
185 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
186 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
188 bld
.SAMBA3_MODULE('vfs_posixacl',
190 source
=VFS_POSIXACL_SRC
,
193 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
194 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
196 bld
.SAMBA3_MODULE('vfs_aixacl',
198 source
=VFS_AIXACL_SRC
,
199 deps
='VFS_AIXACL_UTIL',
201 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
202 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
204 bld
.SAMBA3_MODULE('vfs_aixacl2',
206 source
=VFS_AIXACL2_SRC
,
207 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
209 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
210 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
212 bld
.SAMBA3_MODULE('vfs_solarisacl',
214 source
=VFS_SOLARISACL_SRC
,
216 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
217 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
219 bld
.SAMBA3_MODULE('vfs_zfsacl',
221 source
=VFS_ZFSACL_SRC
,
222 deps
='NFS4_ACLS sunacl',
224 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
225 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
227 bld
.SAMBA3_MODULE('vfs_hpuxacl',
229 source
=VFS_HPUXACL_SRC
,
231 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
232 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
234 bld
.SAMBA3_MODULE('vfs_irixacl',
236 source
=VFS_IRIXACL_SRC
,
238 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_irixacl'),
239 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_irixacl'))
241 bld
.SAMBA3_MODULE('vfs_tru64acl',
243 source
=VFS_TRU64ACL_SRC
,
245 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
246 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
248 bld
.SAMBA3_MODULE('vfs_catia',
250 source
=VFS_CATIA_SRC
,
253 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
254 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
256 bld
.SAMBA3_MODULE('vfs_streams_xattr',
258 source
=VFS_STREAMS_XATTR_SRC
,
261 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
262 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
264 bld
.SAMBA3_MODULE('vfs_streams_depot',
266 source
=VFS_STREAMS_DEPOT_SRC
,
269 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
270 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
272 bld
.SAMBA3_MODULE('vfs_cacheprime',
274 source
=VFS_CACHEPRIME_SRC
,
277 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
278 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
280 bld
.SAMBA3_MODULE('vfs_prealloc',
282 source
=VFS_PREALLOC_SRC
,
285 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
286 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
288 bld
.SAMBA3_MODULE('vfs_commit',
290 source
=VFS_COMMIT_SRC
,
293 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
294 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
296 bld
.SAMBA3_MODULE('vfs_gpfs',
301 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
302 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
304 bld
.SAMBA3_MODULE('vfs_gpfs_hsm_notify',
306 source
=VFS_GPFS_HSM_NOTIFY_SRC
,
308 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs_hsm_notify'),
309 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs_hsm_notify'))
311 bld
.SAMBA3_MODULE('vfs_notify_fam',
313 source
=VFS_NOTIFY_FAM_SRC
,
315 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
316 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
318 bld
.SAMBA3_MODULE('vfs_readahead',
320 source
=VFS_READAHEAD_SRC
,
323 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
324 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
326 bld
.SAMBA3_MODULE('vfs_tsmsm',
328 source
=VFS_TSMSM_SRC
,
331 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
332 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
334 bld
.SAMBA3_MODULE('vfs_fileid',
336 source
=VFS_FILEID_SRC
,
339 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
340 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
342 bld
.SAMBA3_MODULE('vfs_aio_fork',
344 source
=VFS_AIO_FORK_SRC
,
347 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
348 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'),
349 allow_undefined_symbols
=True)
351 bld
.SAMBA3_MODULE('vfs_preopen',
353 source
=VFS_PREOPEN_SRC
,
356 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
357 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
359 bld
.SAMBA3_MODULE('vfs_syncops',
361 source
=VFS_SYNCOPS_SRC
,
364 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
365 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
367 bld
.SAMBA3_MODULE('vfs_acl_xattr',
369 source
=VFS_ACL_XATTR_SRC
,
372 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
373 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
375 bld
.SAMBA3_MODULE('vfs_acl_tdb',
377 source
=VFS_ACL_TDB_SRC
,
378 deps
='NDR_XATTR tdb',
380 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
381 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
383 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
385 source
=VFS_SMB_TRAFFIC_ANALYZER_SRC
,
388 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
389 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
391 bld
.SAMBA3_MODULE('vfs_onefs',
393 source
=VFS_ONEFS_SRC
,
396 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs'),
397 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs'))
399 bld
.SAMBA3_MODULE('vfs_onefs_shadow_copy',
401 source
=VFS_ONEFS_SHADOW_COPY_SRC
,
404 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs_shadow_copy'),
405 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs_shadow_copy'))
407 bld
.SAMBA3_MODULE('vfs_dirsort',
409 source
=VFS_DIRSORT_SRC
,
412 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
413 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
415 bld
.SAMBA3_MODULE('vfs_scannedonly',
417 source
=VFS_SCANNEDONLY_SRC
,
420 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
421 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
423 bld
.SAMBA3_MODULE('vfs_crossrename',
425 source
=VFS_CROSSRENAME_SRC
,
428 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
429 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
431 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
433 source
=VFS_LINUX_XFS_SGID_SRC
,
436 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
437 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
439 bld
.SAMBA3_MODULE('vfs_time_audit',
441 source
=VFS_TIME_AUDIT_SRC
,
444 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
445 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
447 bld
.SAMBA3_MODULE('vfs_dfs_samba4',
449 source
='vfs_dfs_samba4.c',
450 deps
='samba-util dfs_server_ad samdb',
452 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dfs_samba4'),
453 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dfs_samba4'))
455 PERFCOUNT_ONEFS_SRC
= 'perfcount_onefs.c'
456 PERFCOUNT_TEST_SRC
= 'perfcount_test.c'
458 bld
.SAMBA3_SUBSYSTEM('perfcount',
462 bld
.SAMBA3_MODULE('perfcount_onefs',
463 subsystem
='perfcount',
464 source
=PERFCOUNT_ONEFS_SRC
,
466 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_onefs'),
467 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_onefs'))
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'))