Change Summary:
bam_print() calls need newline terminated strings.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+286 -2) |
Review Request #56 — Created June 6, 2015 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
6005 | |
6646d59... | |
Reviewers | |
general | |
6005 bootadm update-archive should create/update archive sha-1 hash
root@openindiana:/tmp# ./bootadm update-archive -f
updating //platform/i86pc/boot_archive
updating //platform/i86pc/amd64/boot_archive
root@openindiana:/tmp# more //platform/i86pc/boot_archive.hash
c5cc0f9801319b8a699656b5e3fbb0ee2e27ea47
root@openindiana:/tmp# more //platform/i86pc/amd64/boot_archive.hash
29c171b6a97422e4e0f2b3f47115d8117c80711e
root@openindiana:/tmp# digest -v -a sha1 /platform/i86pc/boot_archive
sha1 (/platform/i86pc/boot_archive) = c5cc0f9801319b8a699656b5e3fbb0ee2e27ea47
root@openindiana:/tmp# digest -v -a sha1 /platform/i86pc/amd64/boot_archive
sha1 (/platform/i86pc/amd64/boot_archive) = 29c171b6a97422e4e0f2b3f47115d8117c80711e
bam_print() calls need newline terminated strings.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+286 -2) |
include issue number.
Description: |
|
||||||
---|---|---|---|---|---|---|---|
Bugs: |
|
as preparing for RTI: update to make git-pbchk happy. whitespace issue in bootadm_digest.c and updated copyright messages.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+291 -2) |
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+291 -2) |
updated copyright to be consistent with digest.c (as the main source of this work).
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 5 (+304 -2) |
usr/src/cmd/boot/bootadm/bootadm.c (Diff revision 5) |
---|
But you ARE in create_ramdisk(), do you mean the ksh script with the same name?
usr/src/cmd/boot/bootadm/bootadm_digest.c (Diff revision 5) |
---|
The 'digest' name could easily create name collisions, beadm_digest() may be?
usr/src/cmd/boot/bootadm/bootadm_digest.c (Diff revision 5) |
---|
The "please check" part sounds somewhat excessive :-)
usr/src/cmd/boot/bootadm/bootadm_digest.c (Diff revision 5) |
---|
Why NULL_PTR? You are using standard malloc() after all.
usr/src/cmd/boot/bootadm/bootadm_digest.c (Diff revision 5) |
---|
Simple "out of memory" without assigning err=errno and using strerror() would be enough here, you aren't handling the EAGAIN anyway.
Same for lines 202 and 231.
usr/src/cmd/boot/bootadm/bootadm_digest.c (Diff revision 5) |
---|
Here and below - don't need the NULL checks, userland free() does that for you.
changes suggested by Yuri
Summary: |
|
||||||
---|---|---|---|---|---|---|---|
Description: |
|
||||||
Diff: |
Revision 6 (+305 -9) |
usr/src/cmd/boot/bootadm/bootadm_digest.c (Diff revision 7) |
---|
Why is this checking down here, rather than right after the
read
loop?