Page MenuHomeFreeBSD

makefs: make buf generic
ClosedPublic

Authored by smahadevan_freebsdfoundation.org on May 18 2017, 5:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 20 2024, 9:10 AM
Unknown Object (File)
Feb 19 2024, 2:15 PM
Unknown Object (File)
Feb 18 2024, 7:25 PM
Unknown Object (File)
Feb 16 2024, 5:31 PM
Unknown Object (File)
Feb 16 2024, 5:31 PM
Unknown Object (File)
Feb 16 2024, 5:28 PM
Unknown Object (File)
Dec 26 2023, 11:01 PM
Unknown Object (File)
Dec 20 2023, 12:20 AM
Subscribers
None

Details

Summary

Initial changes submitted by emaste, bug fixes added by smahadevan

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested changes to this revision.May 18 2017, 5:47 PM

This was already committed, and the sectorsize portion of the change broke makefs.

This revision now requires changes to proceed.May 18 2017, 5:47 PM

You are referring to https://svnweb.freebsd.org/base?view=revision&revision=317967 right? Was the breaking error something like: "makefs: bread: lseek 48 (-4393751551952): Invalid argument"? My bug fixes in this diff should fix the previously breaking revision. Specifically, the problem had to do with incorrectly casting a void * field in the vnode struct as fsinfo_t. Instead, this diff adds the v_fsinfo field to the struct vnode.

Specifically, the makefs tests pass with this fixed version of the previously-reverted change.

usr.sbin/makefs/ffs/ufs_inode.h
48 ↗(On Diff #28526)

Ought to be named i_devvp for consistency with NetBSD's version.

smahadevan_freebsdfoundation.org edited edge metadata.

Changed i_vnode to i_devvp to maintain consistency with NetBSD

One more minor divergence from NetBSD noted inline. I suggest we go ahead with this change, and revisit the whitespace later on.

usr.sbin/makefs/ffs/buf.h
60 ↗(On Diff #28540)

Should call this b_fs to match NetBSD

Renamed buf and vnode fields to match NetBSD

What's this diff relative to? It looks like e.g ffs/buf.c does not correspond to what is currently SVN master.

Ah you're right, I think I must have included a few extra commits in the diff, I'll fix this diff and make it relative to master.

This revision was automatically updated to reflect the committed changes.