Page MenuHomeFreeBSD

newfs: enable newfs to run on plain files without a bsdlabel
ClosedPublic

Authored by rew on May 28 2025, 1:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 9:05 PM
Unknown Object (File)
Thu, Oct 2, 8:09 AM
Unknown Object (File)
Tue, Sep 30, 6:29 PM
Unknown Object (File)
Tue, Sep 30, 4:03 PM
Unknown Object (File)
Fri, Sep 26, 6:41 AM
Unknown Object (File)
Wed, Sep 24, 10:50 AM
Unknown Object (File)
Tue, Sep 23, 2:40 PM
Unknown Object (File)
Sep 4 2025, 8:10 PM
Subscribers

Details

Summary

For awhile now it's been possible to newfs a plain file...however, newfs
errors out when the file doesn't have a bsdlabel - this commit changes
that.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rew requested review of this revision.May 28 2025, 1:13 AM

This seems to be a reasonable change.

A side note. the getdisklabel() function is declared static at the top, but static is missing from its definition later in the file. Not sure why the compiler does not flag the inconsistency.

This revision is now accepted and ready to land.May 28 2025, 6:03 AM