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',
58 bld
.SAMBA3_SUBSYSTEM('VFS_AIXACL_UTIL',
59 source
='vfs_aixacl_util.c',
62 bld
.SAMBA3_SUBSYSTEM('vfs',
67 bld
.SAMBA3_MODULE('vfs_default',
69 source
=VFS_DEFAULT_SRC
,
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',
78 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_audit'),
79 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_audit'))
81 bld
.SAMBA3_MODULE('vfs_extd_audit',
83 source
=VFS_EXTD_AUDIT_SRC
,
85 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_extd_audit'),
86 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_extd_audit'))
88 bld
.SAMBA3_MODULE('vfs_full_audit',
90 source
=VFS_FULL_AUDIT_SRC
,
92 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_full_audit'),
93 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_full_audit'))
95 bld
.SAMBA3_MODULE('vfs_fake_perms',
97 source
=VFS_FAKE_PERMS_SRC
,
100 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fake_perms'),
101 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fake_perms'))
103 bld
.SAMBA3_MODULE('vfs_recycle',
105 source
=VFS_RECYCLE_SRC
,
107 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_recycle'),
108 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_recycle'))
110 bld
.SAMBA3_MODULE('vfs_netatalk',
112 source
=VFS_NETATALK_SRC
,
114 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_netatalk'),
115 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_netatalk'))
117 bld
.SAMBA3_MODULE('vfs_default_quota',
119 source
=VFS_DEFAULT_QUOTA_SRC
,
121 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_default_quota'),
122 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_default_quota'))
124 bld
.SAMBA3_MODULE('vfs_readonly',
126 source
=VFS_READONLY_SRC
,
128 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readonly'),
129 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readonly'))
131 bld
.SAMBA3_MODULE('vfs_cap',
135 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cap'),
136 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cap'))
138 bld
.SAMBA3_MODULE('vfs_expand_msdfs',
140 source
=VFS_EXPAND_MSDFS_SRC
,
142 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_expand_msdfs'),
143 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_expand_msdfs'))
145 bld
.SAMBA3_MODULE('vfs_shadow_copy',
147 source
=VFS_SHADOW_COPY_SRC
,
149 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy'),
150 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy'))
152 bld
.SAMBA3_MODULE('vfs_shadow_copy2',
154 source
=VFS_SHADOW_COPY2_SRC
,
156 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_shadow_copy2'),
157 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_shadow_copy2'))
159 bld
.SAMBA3_MODULE('vfs_afsacl',
161 source
=VFS_AFSACL_SRC
,
163 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_afsacl'),
164 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_afsacl'))
166 bld
.SAMBA3_MODULE('vfs_xattr_tdb',
168 source
=VFS_XATTR_TDB_SRC
,
171 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_xattr_tdb'),
172 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_xattr_tdb'))
174 bld
.SAMBA3_MODULE('vfs_posixacl',
176 source
=VFS_POSIXACL_SRC
,
179 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_posixacl'),
180 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_posixacl'))
182 bld
.SAMBA3_MODULE('vfs_aixacl',
184 source
=VFS_AIXACL_SRC
,
185 deps
='VFS_AIXACL_UTIL',
187 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl'),
188 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl'))
190 bld
.SAMBA3_MODULE('vfs_aixacl2',
192 source
=VFS_AIXACL2_SRC
,
193 deps
='NFS4_ACLS VFS_AIXACL_UTIL',
195 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aixacl2'),
196 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aixacl2'))
198 bld
.SAMBA3_MODULE('vfs_solarisacl',
200 source
=VFS_SOLARISACL_SRC
,
202 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_solarisacl'),
203 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_solarisacl'))
205 bld
.SAMBA3_MODULE('vfs_zfsacl',
207 source
=VFS_ZFSACL_SRC
,
208 deps
='NFS4_ACLS sunacl',
210 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_zfsacl'),
211 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_zfsacl'))
213 bld
.SAMBA3_MODULE('vfs_hpuxacl',
215 source
=VFS_HPUXACL_SRC
,
217 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_hpuxacl'),
218 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_hpuxacl'))
220 bld
.SAMBA3_MODULE('vfs_irixacl',
222 source
=VFS_IRIXACL_SRC
,
224 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_irixacl'),
225 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_irixacl'))
227 bld
.SAMBA3_MODULE('vfs_tru64acl',
229 source
=VFS_TRU64ACL_SRC
,
231 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_true64acl'),
232 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_true64acl'))
234 bld
.SAMBA3_MODULE('vfs_catia',
236 source
=VFS_CATIA_SRC
,
238 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_catia'),
239 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_catia'))
241 bld
.SAMBA3_MODULE('vfs_streams_xattr',
243 source
=VFS_STREAMS_XATTR_SRC
,
245 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_xattr'),
246 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_xattr'))
248 bld
.SAMBA3_MODULE('vfs_streams_depot',
250 source
=VFS_STREAMS_DEPOT_SRC
,
252 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_streams_depot'),
253 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_streams_depot'))
255 bld
.SAMBA3_MODULE('vfs_cacheprime',
257 source
=VFS_CACHEPRIME_SRC
,
259 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_cacheprime'),
260 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_cacheprime'))
262 bld
.SAMBA3_MODULE('vfs_prealloc',
264 source
=VFS_PREALLOC_SRC
,
266 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_prealloc'),
267 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_prealloc'))
269 bld
.SAMBA3_MODULE('vfs_commit',
271 source
=VFS_COMMIT_SRC
,
273 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_commit'),
274 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_commit'))
276 bld
.SAMBA3_MODULE('vfs_gpfs',
281 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs'),
282 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs'))
284 bld
.SAMBA3_MODULE('vfs_gpfs_hsm_notify',
286 source
=VFS_GPFS_HSM_NOTIFY_SRC
,
288 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_gpfs_hsm_notify'),
289 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_gpfs_hsm_notify'))
291 bld
.SAMBA3_MODULE('vfs_notify_fam',
293 source
=VFS_NOTIFY_FAM_SRC
,
295 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_notify_fam'),
296 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_notify_fam'))
298 bld
.SAMBA3_MODULE('vfs_readahead',
300 source
=VFS_READAHEAD_SRC
,
302 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_readahead'),
303 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_readahead'))
305 bld
.SAMBA3_MODULE('vfs_tsmsm',
307 source
=VFS_TSMSM_SRC
,
309 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_tsmsm'),
310 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_tsmsm'))
312 bld
.SAMBA3_MODULE('vfs_fileid',
314 source
=VFS_FILEID_SRC
,
316 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_fileid'),
317 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_fileid'))
319 bld
.SAMBA3_MODULE('vfs_aio_fork',
321 source
=VFS_AIO_FORK_SRC
,
323 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_aio_fork'),
324 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_aio_fork'))
326 bld
.SAMBA3_MODULE('vfs_preopen',
328 source
=VFS_PREOPEN_SRC
,
330 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_preopen'),
331 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_preopen'))
333 bld
.SAMBA3_MODULE('vfs_syncops',
335 source
=VFS_SYNCOPS_SRC
,
337 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_syncops'),
338 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_syncops'))
340 bld
.SAMBA3_MODULE('vfs_acl_xattr',
342 source
=VFS_ACL_XATTR_SRC
,
344 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_xattr'),
345 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_xattr'))
347 bld
.SAMBA3_MODULE('vfs_acl_tdb',
349 source
=VFS_ACL_TDB_SRC
,
352 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_acl_tdb'),
353 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_acl_tdb'))
355 bld
.SAMBA3_MODULE('vfs_smb_traffic_analyzer',
357 source
=VFS_SMB_TRAFFIC_ANALYZER_SRC
,
359 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_smb_traffic_analyzer'),
360 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_smb_traffic_analyzer'))
362 bld
.SAMBA3_MODULE('vfs_onefs',
364 source
=VFS_ONEFS_SRC
,
366 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs'),
367 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs'))
369 bld
.SAMBA3_MODULE('vfs_onefs_shadow_copy',
371 source
=VFS_ONEFS_SHADOW_COPY_SRC
,
373 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_onefs_shadow_copy'),
374 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_onefs_shadow_copy'))
376 bld
.SAMBA3_MODULE('vfs_dirsort',
378 source
=VFS_DIRSORT_SRC
,
380 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_dirsort'),
381 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_dirsort'))
383 bld
.SAMBA3_MODULE('vfs_scannedonly',
385 source
=VFS_SCANNEDONLY_SRC
,
387 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_scannedonly'),
388 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_scannedonly'))
390 bld
.SAMBA3_MODULE('vfs_crossrename',
392 source
=VFS_CROSSRENAME_SRC
,
394 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_crossrename'),
395 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_crossrename'))
397 bld
.SAMBA3_MODULE('vfs_linux_xfs_sgid',
399 source
=VFS_LINUX_XFS_SGID_SRC
,
401 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_linux_xfs_sgid'),
402 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_linux_xfs_sgid'))
404 bld
.SAMBA3_MODULE('vfs_time_audit',
406 source
=VFS_TIME_AUDIT_SRC
,
408 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('vfs_time_audit'),
409 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('vfs_time_audit'))
413 CHARSET_WEIRD_SRC
= 'weird.c'
414 CHARSET_CP850_SRC
= 'CP850.c'
415 CHARSET_CP437_SRC
= 'CP437.c'
416 CHARSET_MACOSXFS_SRC
= 'charset_macosxfs.c'
419 bld
.SAMBA3_SUBSYSTEM('charset',
423 bld
.SAMBA3_MODULE('charset_weird',
425 source
=CHARSET_WEIRD_SRC
,
427 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_weird'),
428 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_weird'))
430 bld
.SAMBA3_MODULE('charset_CP850',
432 source
=CHARSET_CP850_SRC
,
434 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_CP850'),
435 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_CP850'))
437 bld
.SAMBA3_MODULE('charset_CP437',
439 source
=CHARSET_CP437_SRC
,
441 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_CP437'),
442 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_CP437'))
444 bld
.SAMBA3_MODULE('charset_macosxfs',
446 source
=CHARSET_MACOSXFS_SRC
,
448 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('charset_macosxfs'),
449 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('charset_macosxfs'))
452 PERFCOUNT_ONEFS_SRC
= 'perfcount_onefs.c'
453 PERFCOUNT_TEST_SRC
= 'perfcount_test.c'
455 bld
.SAMBA3_SUBSYSTEM('perfcount',
459 bld
.SAMBA3_MODULE('perfcount_onefs',
460 subsystem
='perfcount',
461 source
=PERFCOUNT_ONEFS_SRC
,
463 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_onefs'),
464 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_onefs'))
466 bld
.SAMBA3_MODULE('perfcount_test',
467 subsystem
='perfcount',
468 source
=PERFCOUNT_TEST_SRC
,
470 internal_module
=bld
.SAMBA3_IS_STATIC_MODULE('perfcount_test'),
471 enabled
=bld
.SAMBA3_IS_ENABLED_MODULE('perfcount_test'))