<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 5, 2024 at 11:52 AM ron minnich <<a href="mailto:rminnich@gmail.com" target="_blank">rminnich@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I keep wondering if this assertion of code difference or lack thereof can be tested. Are not all these sources available? Which bits are missing?</div></blockquote><div><br></div><div>Yes. Great question.</div><div><br></div><div><div><a href="https://people.freebsd.org/~imp/pmap/pmap.32v" target="_blank">https://people.freebsd.org/~imp/pmap/pmap.32v</a></div><div><div><a href="https://people.freebsd.org/~imp/pmap/pmap.4.2" target="_blank">https://people.freebsd.org/~imp/pmap/pmap.4.2</a></div></div><div><div><a href="https://people.freebsd.org/~imp/pmap/pmap.4.3" target="_blank">https://people.freebsd.org/~imp/pmap/pmap.4.3</a></div></div><div><div><a href="https://people.freebsd.org/~imp/pmap/pmap.net.2" target="_blank">https://people.freebsd.org/~imp/pmap/pmap.net.2</a></div></div><font color="#888888"><div><br></div><div>has the functions as I extracted them for the diff numbers I posted before. The TUHS archive links</div><div>are at:</div><div><br></div></font></div><div><div><a href="https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/subr.c" target="_blank">https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/subr.c</a></div><div><a href="https://www.tuhs.org/cgi-bin/utree.pl?file=4BSD/usr/src/sys/sys/subr.c" target="_blank">https://www.tuhs.org/cgi-bin/utree.pl?file=4BSD/usr/src/sys/sys/subr.c</a></div><div><a href="https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/ufs_bmap.c" target="_blank">https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/ufs_bmap.c</a></div><div><div><a href="https://www.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/sys/sys/ufs_bmap.c" target="_blank">https://www.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/sys/sys/ufs_bmap.c</a></div><div><span style="color:rgb(17,85,204);text-decoration-line:underline"><a href="https://github.com/sergev/4">https://github.com/sergev/4</a>.</span><span style="color:rgb(17,85,204);text-decoration-line:underline">4BSD-Lite2/blob/master/usr/</span><span style="color:rgb(17,85,204);text-decoration-line:underline">src/sys/ufs/ufs/ufs_bmap.c</span><br></div></div></div><div><span style="color:rgb(17,85,204);text-decoration-line:underline"><br></span></div><div>in case anybody wants to check my math or characterizations about the differences.</div><div><br></div><div>Warner</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 5, 2024 at 9:55 AM Noel Chiappa <<a href="mailto:jnc@mercury.lcs.mit.edu" target="_blank">jnc@mercury.lcs.mit.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    > From: Warner Losh<br>
<br>
    >> On Mon, Nov 4, 2024 at 8:14PM Larry McVoy wrote:<br>
<br>
    >> The bmap implementations I saw were bit for bit identical, same code,<br>
    >> same variables, same style, same indentation. I'm 100% sure they were<br>
    >> not independent.<br>
<br>
    > They are different in 4.3BSD. They are different in 4.2BSD (but less<br>
    > different). The underlying filesystems are different on disk, so they<br>
    > routines have to be different.<br>
<br>
That last sentence points out something important that people need to remember<br>
in this discussion: in between 4.1 and 4.2 (technically, in 4.1B), BSD<br>
switched to the BSD Fast File System, so I very much doubt that the low-level<br>
(i.e. logical file block to disk block) file system code in anything after<br>
4.1A looks much like the AT+T low-level file system code. (I have no idea how<br>
the BSD code compares to the Linux file system code, but that's between the<br>
Linux people, and Berkeley.)<br>
<br>
        Noel<br>
</blockquote></div>
</blockquote></div></div>
</div>