On Fri, Jan 20, 2023 at 02:51:31PM +0000, Jason McIntyre wrote:
> On Fri, Jan 20, 2023 at 12:35:05PM +0000, Klemens Nanni wrote:
> > 19.01.2023 19:11, Jason McIntyre ??????????:
> > > On Thu, Jan 19, 2023 at 06:50:14PM +0000, Klemens Nanni wrote:
> > >>  $ man -h rdsetroot
> > >>  rdsetroot [-dx] kernel [disk.fs]
> > >> vs.
> > >>  $ rdsetroot
> > >>  usage: rdsetroot [-dx] bsd [fs]
> > >>
> > > 
> > > i have to say i think the man page has better argument names, but i've
> > > nothing against your changes. just as long as they match.
> > 
> > Either way is fine, just let them match.
> > 
> > >> Clarify that -x uses stdout (could be a default file like ktrace(1) does)
> > >> and switch 'standard in/output' to more common '.Va stdin/out' like the
> > >> related vnconfig(8) does.
> > >>
> > > 
> > > i'm fine with your diff, but i think that "reads from standard input" is
> > > much easier to understand than the change you propose.
> > 
> > Sure, new version with both points incorporated.
> > 
> > Feedback? OK?
> > 
> > > 
> > > jmc
> > > 
> > >> Explaining how disk images can round trip through rdsetroot and vnconfig
> > >> is vaguely useful, imho, even less so in the description of -x, so 
> > >> briefly
> > >> mention the relation and let readers follow the reference for more.
> > 
> > 
> > Index: rdsetroot.8
> > ===================================================================
> > RCS file: /cvs/src/usr.sbin/rdsetroot/rdsetroot.8,v
> > retrieving revision 1.2
> > diff -u -p -r1.2 rdsetroot.8
> > --- rdsetroot.8     5 Apr 2019 21:44:32 -0000       1.2
> > +++ rdsetroot.8     20 Jan 2023 12:33:31 -0000
> > @@ -24,30 +24,29 @@
> >  .Nm rdsetroot
> >  .Op Fl dx
> >  .Ar kernel
> > -.Op Ar disk.fs
> > +.Op Ar disk
> 
> well, disk.fs and your original proposal (fs) both hinted that you want
> a filesystem. i'm less sure about "disk". you aren;t concerned about
> that? i really don;t see an issue with how it is now.

I agree.  Just "disk" isn't very clear that it's intended to be a filesystem
image.

> 
> >  .Sh DESCRIPTION
> >  The
> >  .Nm
> > -utility inserts the file
> > -.Ar disk.fs
> > -into the reserved space inside a RAMDISK kernel.
> > +utility inserts the disk image
> > +.Ar disk
> > +into the reserved space inside the RAMDISK kernel
> > +.Ar bsd .
> 
> if you stick with "kernel" you'll need to make that change here too.

It reads better as "a RAMDISK kernel", rather than, "the RAMDISK kernel",
unless you also change it to "the specified RAMDISK kernel".

Overall, I think that this diff reduces the readability of the manual page
rather than improves it.

The useful parts are to make the argument names match between manual and
command, and to clarify that -x writes to standard output if no output
file is specified.

The rest is just churn.

I'm doubtful that it's even useful to explicitly state that the image can
be manipulated and then re-inserted.  It's fairly obvious.

Reply via email to