[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: patch to fix short-option for certfile (-F) in nbd-client



On Tue, Jul 25, 2023 at 10:07:34AM -0400, Matt Panaro wrote:
> I like the second option that avoids the #else branches, even at the cost
> of losing the alphabetical ordering.  this is the first time I've submitted
> a code-change through email rather than e.g. GitHub, so I'm a bit uncertain
> about how to proceed. should I reply with an updated diff? start a new
> thread?

I generally start a new thread if posting a v2 patch, otherwise reply
to the existing thread when adding more ideas on where the development
might go.  Also, technical lists tend to favor inline replies (as I'm
doing here), rather than top-posting.

Although the project is hosted on gitlab, Wouter would be the one to
say whether he's comfortable with gitlab's pull request model, or
whether he still prefers patches by email (I personally find email
easier to work with, and am not sure I have the rights to approve a
gitlab pull request although I do have the rights to push your patch
on your behalf if it came through email and is ready to go).  There
are ways for a maintainer to use an email-based flow even when
contributors prefer a gitlab-based UI flow, but not all projects are
set up that way.

> also, who would I ask for/how would I get the "signed off by"?

Git has the notion of a 'Signed-off-by:' tag that can be added to a
commit with project-dependent semantics; 'git commit --amend -s' is
one easy way to add it to an existing patch.  The Linux kernel has
well-defined semantics for what it means[1] (the tl;dr: "adding S-o-b
is a legal statement that my patch won't break the kernel's license"),
but other projects are laxer and some will accept submissions without
S-o-b.  Given how the nbd project is at the intersection of kernel and
userspace code, I personally use S-o-b for patches here, but Wouter as
the project owner has final say on whether it is a hard requirement
for NBD (you can find older commits in nbd.git that lacked one, and
'git grep -i "certificate of origin"' has no hits yet).

[1] https://www.kernel.org/doc/html/latest/process/submitting-patches.html?highlight=signed%20off#sign-your-work-the-developer-s-certificate-of-origin

> 
> one more thing: there's a slightly larger additional change/feature I'd
> like to implement: is the correct thing to do start a codeless discussion
> on the mailing list? or just send a larger diff (with appropriate
> references to commit-hashes)?

Either is fine for me - getting consensus on the general idea of the
feature before spending time writing the patches may be the smoothest
path forward, but sometimes patches speak for themselves.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org


Reply to: