Allow FreeBSD mount NetBSD's FFSv2 WAPBL read-only#2279
Allow FreeBSD mount NetBSD's FFSv2 WAPBL read-only#2279ricardobranco777 wants to merge 1 commit into
Conversation
|
This patch may be sufficient to mount, but what guarantees are there that it will work correctly? That all types of metadata will be readable, and that performing writes on FreeBSD won't render the volume corrupt from NetBSD's perspective? It will take a very detailed understanding of both operating systems' on-disk formats to answer those questions. |
I'd be honoured to have a review by Marshall Kirk McKusick. :) |
Skip UFS2 fs_metaspace upper-bound validation that rejects NetBSD FFSv2 WAPBL filesystems due to differing superblock layouts. Detect the condition during mount instead and permit read-only mounts while rejecting read-write mounts with EROFS. This follows NetBSD's recommendation for systems without WAPBL support and avoids modifying unsupported journal metadata. PR: 296022 Signed-off-by: Ricardo Branco <rbranco@suse.de>
Fixes https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296022