Skip to content

Commit f386276

Browse files
committed
compatibility_matrix: describe edonr support for FreeBSD
Signed-off-by: George Melikov <[email protected]>
1 parent 1a4718c commit f386276

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

scripts/compatibility_matrix.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def openzfsonosx():
5353
try:
5454
tags = dejson(web.read().decode('utf-8', 'ignore'))
5555
tags = [x['name'].lstrip('zfs-macOS-') for x in tags]
56-
tags = [tag for tag in tags if '.99' not in tag]
56+
tags = [tag for tag in tags if '.99' not in tag]
5757
tags.sort()
5858
latest = tags[-1]
5959
tags = [tag for tag in tags if 'rc' not in tag]
@@ -321,13 +321,24 @@ def nexenta():
321321
html.write('<td class="warn">no</td>')
322322
for name, vers in header:
323323
for ver in vers:
324-
if (name, ver) in names:
324+
# custom case for OpenZFS FreeBSD https://github.com/openzfs/zfs/pull/12735
325+
if (feature == 'edonr' and name == openzfs_key and '.' in ver
326+
and (int(ver.split('.')[0]) <= 2
327+
or (int(ver.split('.')[0]) <= 1
328+
and int(ver.split('.')[1]) <= 1))):
329+
html.write('<td class="yes">yes<sup><a href="#note_1">1</a></sup></td>')
330+
elif (name, ver) in names:
325331
html.write('<td class="yes">yes</td>')
326332
else:
327333
html.write('<td class="no">no</td>')
328334
html.write('</tr>\n')
329335
html.write('</table>\n')
330-
336+
html.write('<div>\n')
337+
html.write('<h3>Notes:</h3>\n')
338+
html.write('<ol>\n')
339+
html.write('<li id="note_1"><a href="https://github.com/openzfs/zfs/pull/12735">Edonr support was not enabled in FreeBSD with OpenZFS up to 2.1 release included<a></li>\n')
340+
html.write('</ol>\n')
341+
html.write('</div>\n')
331342
now = datetime.now().isoformat() + 'Z'
332343
html.write('<p>Table generates by parsing manpages for feature flags, and is entirely dependent on good, accurate documentation.<br />Last updated on ' + now + ' using <a href="https://github.com/openzfs/openzfs-docs/tree/master/scripts/compatibility_matrix.py">compatibility_matrix.py</a>.</p>\n')
333344

0 commit comments

Comments
 (0)