If the 'cdrom=' option is specified in the definition file but media is
Quoted 11 lines · Xen patchbot -3.0-testing wrote:
# HG changeset patch
# User [email protected]
# Node IDfd526926e0d1c0671295aa7f4b952186c9345173
# Parent408f51a850f47af4db20f43f281935909d502511
If the 'cdrom=' option is specified in the definition file but media is not found in the CD drive thenmain()invl.cexits and the guest appears to hang. This patch modifiesvl.cslightly to check for the presents of media. If the cdrom cannot be opened then the cd entry is removed from hd_filename[] and bs_table[] allowing the guest to continue initializing. If the guest requires the CD media then the guest should report, gracefully or otherwise, that it's missing.From: Ross Maxfield <[email protected]>
Signed-off-by Keir Fraser <[email protected]>
Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
Regards,
Anthony Liguori
Quoted 29 lines
diff -r
408f51a850f4-rfd526926e0d1tools/ioemu/vl.ctools/ioemu/vl.c +11
-2@@ -3243,8 +3243,17 @@/* we always create the cdrom drive, even if no disk is there */ bdrv_init ();if (has_cdrom) { - bs_table[2 ] =bdrv_new ("cdrom" ); -bdrv_set_type_hint (bs_table[2 ],BDRV_TYPE_CDROM ); +int fd; +if ( (fd =open (hd_filename[2 ],O_RDONLY |O_BINARY )) <0 ) { + hd_filename[2 ]=NULL ; + bs_table[2 ]=NULL ; +fprintf (logfile,"Could not open CD %s.\n" , hd_filename[i]); + } +else { +close (fd); + bs_table[2 ] =bdrv_new ("cdrom" ); +bdrv_set_type_hint (bs_table[2 ],BDRV_TYPE_CDROM ); + } }/* open the virtual block devices */ _______________________________________________
Xen-changelog mailing list
[email protected]
http://lists.xensource.com/xen-changelog
Quoted 13 lines · Anthony Liguori
Quoted 12 lines · Xen patchbot -3.0-testing wrote:
# HG changeset patch
# User [email protected]
# Node IDfd526926e0d1c0671295aa7f4b952186c9345173
# Parent408f51a850f47af4db20f43f281935909d502511
If the 'cdrom=' option is specified in the definition file but media is not found in the CD drive thenmain()invl.cexits and the guest appears to hang. This patch modifiesvl.cslightly to check for the presents of media. If the cdrom cannot be opened then the cd entry is removed from hd_filename[] and bs_table[] allowing the guest to continue initializing. If the guest requires the CD media then the guest should report, gracefully or otherwise, that it's missing.
Quoted 6 lines
Quoted 4 lines
From: Ross Maxfield <[email protected]>
Signed-off-by Keir Fraser <[email protected]>Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
People have been complaining that a patch should not retain the Signed-off-by line if the patch has been modified, because they do not sign-off the modified patch. If a patch needs minor changes before it can be committed, we can either bounce it back to the author, which seems unnecessarily heavyweight, or do what Keir's done here, and sign-off the patch himself. The From: line retains the audit trail, credit, and copyright, and it's clear that Keir himself thinks that this patch is acceptable.
Ewan.
Quoted 6 lines · Ewan Mellor
Quoted 2 lines · Anthony Liguori
Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
Quoted 8 lines
People have been complaining that a patch should not retain the Signed-off-by line if the patch has been modified, because they do not sign-off the modified patch. If a patch needs minor changes before it can be committed, we can either bounce it back to the author, which seems unnecessarily heavyweight, or do what Keir's done here, and sign-off the patch himself. The From: line retains the audit trail, credit, and copyright, and it's clear that Keir himself thinks that this patch is acceptable.
I won't speak for Hollis (although I will CC him :-)) but my understanding is that the appropriate thing to do is check in the patch with the original Signed-off-by and then check in another patch on top of that with the necessary changes (this time, with just Keir's Signed-off-by).
I think the intention is that the original submitter needs to have a Signed-off-by to signify that the origin of the code is kosher (which is something Keir cannot do on his own if the code didn't originate from him). Is this how other people understand it?
Regards,
Anthony Liguori
Quoted 2 lines
Ewan.
Quoted 6 lines · Ewan Mellor
Quoted 5 lines
Quoted 4 lines
From: Ross Maxfield <[email protected]>
Signed-off-by Keir Fraser <[email protected]>Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
Quoted 7 lines
People have been complaining that a patch should not retain the Signed-off-by line if the patch has been modified, because they do not sign-off the modified patch. If a patch needs minor changes before it can be committed, we can either bounce it back to the author, which seems unnecessarily heavyweight, or do what Keir's done here, and sign-off the patch himself. The From: line retains the audit trail, credit, and copyright, and it's clear that Keir himself thinks that this patch is acceptable.
This is not acceptable practice in my opinion. An alternative would be to add an Acked-by: Ross line to verify that the code is still ok'd per the DCO guidelines by the original author.
What would be even better is to follow the accepted practice for linux development, which is to bounce it back to the author with comments. In fact, please explain why we don't follow that practice again? If the answer is that it is too heavyweight please think again.
Mike Day
Quoted 6 lines · Ewan Mellor
Quoted 2 lines · Anthony Liguori
Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
Quoted 8 lines
People have been complaining that a patch should not retain the Signed-off-by line if the patch has been modified, because they do not sign-off the modified patch. If a patch needs minor changes before it can be committed, we can either bounce it back to the author, which seems unnecessarily heavyweight, or do what Keir's done here, and sign-off the patch himself. The From: line retains the audit trail, credit, and copyright, and it's clear that Keir himself thinks that this patch is acceptable.
I won't speak for Hollis (although I will CC him :-)) but my understanding is that the appropriate thing to do is check in the patch with the original Signed-off-by and then check in another patch on top of that with the necessary changes (this time, with just Keir's Signed-off-by).
I think the intention is that the original submitter needs to have a Signed-off-by to signify that the origin of the code is kosher (which is something Keir cannot do on his own if the code didn't originate from him). Is this how other people understand it?
Regards,
Anthony Liguori
Quoted 2 lines
Ewan.
Re: Signed-off-by again
In reply to Anthony LiguoriQuoted 22 lines · Anthony Liguori
Quoted 6 lines · Ewan Mellor
Quoted 2 lines · Anthony Liguori
Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
Quoted 8 lines
People have been complaining that a patch should not retain the Signed-off-by line if the patch has been modified, because they do not sign-off the modified patch. If a patch needs minor changes before it can be committed, we can either bounce it back to the author, which seems unnecessarily heavyweight, or do what Keir's done here, and sign-off the patch himself. The From: line retains the audit trail, credit, and copyright, and it's clear that Keir himself thinks that this patch is acceptable.
I won't speak for Hollis (although I will CC him :-)) but my understanding is that the appropriate thing to do is check in the patch with the original Signed-off-by and then check in another patch on top of that with the necessary changes (this time, with just Keir's Signed-off-by).
Quoted 4 lines
I think the intention is that the original submitter needs to have a Signed-off-by to signify that the origin of the code is kosher (which is something Keir cannot do on his own if the code didn't originate from him). Is this how other people understand it?
Actually, now I'm confused about the DCO
(http://www.osdl.org/newsroom/press_releases/2004/2004_05_24_dco.html).
The terms seem to allow adding Signed-off-by lines when making modifications, but that seems obviously in conflict point of the system.
See also Linus's mail at http://kerneltrap.org/node/3180:
It also allows middle parties to edit the patch without somehow "losing" their names - quite often the patch that reaches the final kernel is not exactly the same as the original one, as it has gone through a few layers of people.
So in the Linux system, it is OK for Keir to modify (not rewrite) and add his Signed-off-by after all.
The reason I don't like that is this example:
- Mary submits a clean patch with signed-off-by line
- Joe adds some bad IP to Mary's patch (e.g. some proprietary copyrighted code), adds his signed-off-by line, and forwards on
- patch is checked in
- lawyers find the infringing patch, and look, there's Mary apparently signing off on it
We could follow the Linux system, or something stronger (i.e. no modifications to other people's patches allowed). I guess it's up to the maintainers...
Whatever is chosen, it needs to be *documented* (beyond just the DCO URL above) and adhered to.
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
Re: Signed-off-by again
Quoted 3 lines · Hollis Blanchard
So in the Linux system, it is OK for Keir to modify (not rewrite) and add his Signed-off-by after all.
Yes after reading the email reference I agree with Hollis , and I was wrong to say that Keir's method was against linux DCO guidelines (it was within guidelines).
Quoted 4 lines
We could follow the Linux system, or something stronger (i.e. no modifications to other people's patches allowed). I guess it's up to the maintainers...
I still say the right thing in this case is to bounce the patch back to the author (preferably with comments). That way all of us gain the benefit of the dialog.
Mike
Re: Signed-off-by again
In reply to Hollis BlanchardQuoted 2 lines · Hollis Blanchard
So in the Linux system, it is OK for Keir to modify (not rewrite) and add his Signed-off-by after all.
You have to consider the intent: it's ok and reasonable for a maintainer to adapt a patch in a trivial way for another change he has in his tree (e.g., a function prototype changed), but it's neither ok nor reasonable for the maintainer to rewrite the patch and keep the original SOB.
As for the bad IP example - anyone who adds his SOB beyond the original author is one of the maintainers, and maintainers are implicitly trusted. If you have maintainers who start adding bad IP
...
Cheers,
Muli
Signature · 2 lines
Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/
Quoted 20 lines · Ewan Mellor
Quoted 9 lines · Anthony Liguori
Quoted 7 lines · Xen patchbot -3.0-testing wrote:
# HG changeset patch
# User [email protected]
# Node IDfd526926e0d1c0671295aa7f4b952186c9345173
# Parent408f51a850f47af4db20f43f281935909d502511
If the 'cdrom=' option is specified in the definition file but media is not found in the CD drive thenmain()invl.cexits and the guest appears to hang. This patch modifiesvl.cslightly to check for the presents of media. If the cdrom cannot be opened then the cd entry is removed from hd_filename[] and bs_table[] allowing the guest to continue initializing. If the guest requires the CD media then the guest should report, gracefully or otherwise, that it's missing.Quoted 7 lines
Quoted 5 lines
From: Ross Maxfield <[email protected]>
Signed-off-by Keir Fraser <[email protected]>Doesn't this need a Signed-off-by: Ross Maxfield <[email protected]>?
Quoted 8 lines
People have been complaining that a patch should not retain the Signed-off-by line if the patch has been modified, because they do not sign-off the modified patch. If a patch needs minor changes before it can be committed, we can either bounce it back to the author, which seems unnecessarily heavyweight, or do what Keir's done here, and sign-off the patch himself. The From: line retains the audit trail, credit, and copyright, and it's clear that Keir himself thinks that this patch is acceptable.
Just so this doesn't get lost in the discussion, I meant to say that I was referring to the original submission. The original patch submission did not contain a Signed-off-by line.
Regardless of the interpretation of the DCO, Ross should resubmit the patch with a Signed-off-by.
Regards,
Anthony Liguori
Quoted 2 lines
Ewan.
Re: Signed-off-by again
In reply to Muli Ben-YehudaQuoted 7 lines · Muli Ben-Yehuda
Quoted 3 lines · Hollis Blanchard
So in the Linux system, it is OK for Keir to modify (not rewrite) and add his Signed-off-by after all.
Quoted 6 lines
You have to consider the intent: it's ok and reasonable for a maintainer to adapt a patch in a trivial way for another change he has in his tree (e.g., a function prototype changed), but it's neither ok nor reasonable for the maintainer to rewrite the patch and keep the original SOB.
Having another changeset is so trivial that IMHO one should always just hg import the original patch and then add another one on top of it.
Personally, I'm very interested to see the things about a patch that warrant modification so I can avoid doing them in my own patches. Having that expressed as a separate changeset is very useful (especially if it has a nice commit message explaining the reasons for the modification).
Regards,
Anthony Liguori
Quoted 8 lines
As for the bad IP example - anyone who adds his SOB beyond the original author is one of the maintainers, and maintainers are implicitly trusted. If you have maintainers who start adding bad IP
...Cheers,
Muli