Page MenuHomeFreeBSD

makefs: make buf generic
ClosedPublic

Authored by guest-svmhdvn on May 18 2017, 5:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 8, 4:01 AM
Unknown Object (File)
Mon, Nov 25, 1:11 AM
Unknown Object (File)
Sat, Nov 23, 7:54 AM
Unknown Object (File)
Sat, Nov 23, 2:47 AM
Unknown Object (File)
Thu, Nov 21, 5:09 PM
Unknown Object (File)
Nov 19 2024, 10:25 AM
Unknown Object (File)
Nov 19 2024, 3:28 AM
Unknown Object (File)
Nov 6 2024, 9:30 PM
Subscribers
None

Details

Summary

Initial changes submitted by emaste, bug fixes added by smahadevan

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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

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

guest-svmhdvn 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

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.