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_NOTIFY_FAM_SRC
= 'vfs_notify_fam.c'
34 VFS_READAHEAD_SRC
= 'vfs_readahead.c'
35 VFS_TSMSM_SRC
= 'vfs_tsmsm.c'
36 VFS_FILEID_SRC
= 'vfs_fileid.c'
37 VFS_AIO_FORK_SRC
= 'vfs_aio_fork.c'
38 VFS_PREOPEN_SRC
= 'vfs_preopen.c'
39 VFS_SYNCOPS_SRC
= 'vfs_syncops.c'
40 VFS_ACL_XATTR_SRC
= 'vfs_acl_xattr.c'
41 VFS_ACL_TDB_SRC
= 'vfs_acl_tdb.c'
42 VFS_SMB_TRAFFIC_ANALYZER_SRC
= 'vfs_smb_traffic_analyzer.c'
43 VFS_ONEFS_SRC
= '''vfs_onefs.c onefs_acl.c onefs_system.c
44 onefs_open.c onefs_streams.c onefs_dir.c
45 onefs_cbrl.c onefs_notify.c onefs_config.c'''
46 VFS_ONEFS_SHADOW_COPY_SRC
= 'vfs_onefs_shadow_copy.c onefs_shadow_copy.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'
54 bld
.SAMBA3_SUBSYSTEM('NFS4_ACLS',
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
,
70 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default'),
71 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default'))
73 bld
.SAMBA3_MODULE('vfs_audit',
77 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
78 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
80 bld
.SAMBA3_MODULE('vfs_extd_audit',
82 source
=VFS_EXTD_AUDIT_SRC
,
84 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
85 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
87 bld
.SAMBA3_MODULE('vfs_full_audit',
89 source
=VFS_FULL_AUDIT_SRC
,
91 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
92 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
94 bld
.SAMBA3_MODULE('vfs_fake_perms',
96 source
=VFS_FAKE_PERMS_SRC
,
99 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
100 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
102 bld
.SAMBA3_MODULE('vfs_recycle',
104 source
=VFS_RECYCLE_SRC
,
106 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
107 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
109 bld
.SAMBA3_MODULE('vfs_netatalk',
111 source
=VFS_NETATALK_SRC
,
113 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
114 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
116 bld
.SAMBA3_MODULE('vfs_default_quota',
118 source
=VFS_DEFAULT_QUOTA_SRC
,
120 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
121 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
123 bld
.SAMBA3_MODULE('vfs_readonly',
125 source
=VFS_READONLY_SRC
,
127 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
128 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
130 bld
.SAMBA3_MODULE('vfs_cap',
134 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
135 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
137 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
139 source
=VFS_EXPAND_MSDFS_SRC
,
141 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
142 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
144 bld
.SAMBA3_MODULE('vfs_shadow_copy',
146 source
=VFS_SHADOW_COPY_SRC
,
148 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
149 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
151 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
153 source
=VFS_SHADOW_COPY2_SRC
,
155 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
156 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
158 bld
.SAMBA3_MODULE('vfs_afsacl',
160 source
=VFS_AFSACL_SRC
,
162 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
163 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
165 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
167 source
=VFS_XATTR_TDB_SRC
,
170 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
171 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
173 bld
.SAMBA3_MODULE('vfs_posixacl',
175 source
=VFS_POSIXACL_SRC
,
178 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
179 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
181 bld
.SAMBA3_MODULE('vfs_aixacl',
183 source
=VFS_AIXACL_SRC
,
184 deps
='VFS_AIXACL_UTIL',
186 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
187 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
189 bld
.SAMBA3_MODULE('vfs_aixacl2',
191 source
=VFS_AIXACL2_SRC
,
192 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
194 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
195 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
197 bld
.SAMBA3_MODULE('vfs_solarisacl',
199 source
=VFS_SOLARISACL_SRC
,
201 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
202 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
204 bld
.SAMBA3_MODULE('vfs_zfsacl',
206 source
=VFS_ZFSACL_SRC
,
207 deps
='NFS4_ACLS sunacl',
209 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
210 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
212 bld
.SAMBA3_MODULE('vfs_hpuxacl',
214 source
=VFS_HPUXACL_SRC
,
216 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
217 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
219 bld
.SAMBA3_MODULE('vfs_irixacl',
221 source
=VFS_IRIXACL_SRC
,
223 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_irixacl'),
224 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_irixacl'))
226 bld
.SAMBA3_MODULE('vfs_tru64acl',
228 source
=VFS_TRU64ACL_SRC
,
230 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
231 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
233 bld
.SAMBA3_MODULE('vfs_catia',
235 source
=VFS_CATIA_SRC
,
237 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
238 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
240 bld
.SAMBA3_MODULE('vfs_streams_xattr',
242 source
=VFS_STREAMS_XATTR_SRC
,
244 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
245 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
247 bld
.SAMBA3_MODULE('vfs_streams_depot',
249 source
=VFS_STREAMS_DEPOT_SRC
,
251 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
252 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
254 bld
.SAMBA3_MODULE('vfs_cacheprime',
256 source
=VFS_CACHEPRIME_SRC
,
258 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
259 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
261 bld
.SAMBA3_MODULE('vfs_prealloc',
263 source
=VFS_PREALLOC_SRC
,
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_SRC
,
272 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
273 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
275 bld
.SAMBA3_MODULE('vfs_gpfs',
280 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
281 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
283 bld
.SAMBA3_MODULE('vfs_notify_fam',
285 source
=VFS_NOTIFY_FAM_SRC
,
287 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
288 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
290 bld
.SAMBA3_MODULE('vfs_readahead',
292 source
=VFS_READAHEAD_SRC
,
294 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
295 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
297 bld
.SAMBA3_MODULE('vfs_tsmsm',
299 source
=VFS_TSMSM_SRC
,
301 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
302 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
304 bld
.SAMBA3_MODULE('vfs_fileid',
306 source
=VFS_FILEID_SRC
,
308 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
309 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
311 bld
.SAMBA3_MODULE('vfs_aio_fork',
313 source
=VFS_AIO_FORK_SRC
,
315 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
316 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'))
318 bld
.SAMBA3_MODULE('vfs_preopen',
320 source
=VFS_PREOPEN_SRC
,
322 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
323 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
325 bld
.SAMBA3_MODULE('vfs_syncops',
327 source
=VFS_SYNCOPS_SRC
,
329 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
330 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
332 bld
.SAMBA3_MODULE('vfs_acl_xattr',
334 source
=VFS_ACL_XATTR_SRC
,
336 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
337 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
339 bld
.SAMBA3_MODULE('vfs_acl_tdb',
341 source
=VFS_ACL_TDB_SRC
,
344 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
345 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
347 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
349 source
=VFS_SMB_TRAFFIC_ANALYZER_SRC
,
351 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
352 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
354 bld
.SAMBA3_MODULE('vfs_onefs',
356 source
=VFS_ONEFS_SRC
,
358 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs'),
359 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs'))
361 bld
.SAMBA3_MODULE('vfs_onefs_shadow_copy',
363 source
=VFS_ONEFS_SHADOW_COPY_SRC
,
365 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs_shadow_copy'),
366 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs_shadow_copy'))
368 bld
.SAMBA3_MODULE('vfs_dirsort',
370 source
=VFS_DIRSORT_SRC
,
372 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
373 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
375 bld
.SAMBA3_MODULE('vfs_scannedonly',
377 source
=VFS_SCANNEDONLY_SRC
,
379 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
380 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
382 bld
.SAMBA3_MODULE('vfs_crossrename',
384 source
=VFS_CROSSRENAME_SRC
,
386 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
387 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
389 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
391 source
=VFS_LINUX_XFS_SGID_SRC
,
393 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
394 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
396 bld
.SAMBA3_MODULE('vfs_time_audit',
398 source
=VFS_TIME_AUDIT_SRC
,
400 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
401 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
405 CHARSET_WEIRD_SRC
= 'weird.c'
406 CHARSET_CP850_SRC
= 'CP850.c'
407 CHARSET_CP437_SRC
= 'CP437.c'
408 CHARSET_MACOSXFS_SRC
= 'charset_macosxfs.c'
411 bld
.SAMBA3_SUBSYSTEM('charset',
415 bld
.SAMBA3_MODULE('charset_weird',
417 source
=CHARSET_WEIRD_SRC
,
419 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_weird'),
420 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_weird'))
422 bld
.SAMBA3_MODULE('charset_CP850',
424 source
=CHARSET_CP850_SRC
,
426 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_CP850'),
427 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_CP850'))
429 bld
.SAMBA3_MODULE('charset_CP437',
431 source
=CHARSET_CP437_SRC
,
433 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_CP437'),
434 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_CP437'))
436 bld
.SAMBA3_MODULE('charset_macosxfs',
438 source
=CHARSET_MACOSXFS_SRC
,
440 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_macosxfs'),
441 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_macosxfs'))
444 PERFCOUNT_ONEFS_SRC
= 'perfcount_onefs.c'
445 PERFCOUNT_TEST_SRC
= 'perfcount_test.c'
447 bld
.SAMBA3_SUBSYSTEM('perfcount',
451 bld
.SAMBA3_MODULE('perfcount_onefs',
452 subsystem
='perfcount',
453 source
=PERFCOUNT_ONEFS_SRC
,
455 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_onefs'),
456 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_onefs'))
458 bld
.SAMBA3_MODULE('perfcount_test',
459 subsystem
='perfcount',
460 source
=PERFCOUNT_TEST_SRC
,
462 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
463 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))