Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
be00c1c1
Commit
be00c1c1
authored
Apr 22, 2015
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix and turn off debugging.
parent
eb13c3b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
clientside/os/imagezip/imagedelta.c
clientside/os/imagezip/imagedelta.c
+8
-7
clientside/os/imagezip/libndz/hash.c
clientside/os/imagezip/libndz/hash.c
+1
-1
No files found.
clientside/os/imagezip/imagedelta.c
View file @
be00c1c1
...
...
@@ -21,7 +21,7 @@
* }}}
*/
#define CHUNKIFY_DEBUG
//
#define CHUNKIFY_DEBUG
/*
* imagedelta [ -S -f ] image1.ndz image2.ndz delta1to2.ndz
...
...
@@ -303,7 +303,7 @@ readifile(struct fileinfo *info)
next
->
start
,
next
->
end
);
fprintf
(
stderr
,
"%s: error while validating range/hash maps
\n
"
,
ndz_filename
(
info
->
ndz
));
#if
1
#if
0
printf("==== Image ");
ndz_rangemap_dump(info->map, (debug==0), NULL);
printf("==== Hash ");
...
...
@@ -462,7 +462,7 @@ chunkify(struct ndz_rangemap *mmap, struct ndz_range *range, void *arg)
fprintf
(
stderr
,
" found hash=%s
\n
"
,
ndz_hash_dump
(
hdata
->
hash
,
hashlen
));
#endif
#if
1
#if
0
/* sanity check */
{
unsigned char hbuf[HASH_MAXSIZE];
...
...
@@ -733,7 +733,7 @@ main(int argc, char **argv)
readifile
(
&
ndz1
);
readifile
(
&
ndz2
);
#if
1
#if
0
printf("==== Old range ");
ndz_rangemap_dump(ndz1.map, (debug==0), chunkfunc);
printf("==== Old hash ");
...
...
@@ -770,7 +770,7 @@ main(int argc, char **argv)
*/
delta
.
ndz
->
maplo
=
ndz2
.
ndz
->
maplo
;
delta
.
ndz
->
maphi
=
ndz2
.
ndz
->
maphi
;
#if
1
#if
0
printf("==== Delta hash ");
ndz_hashmap_dump(delta.map, (debug==0));
printf("==== Old hashmap stats:");
...
...
@@ -799,7 +799,7 @@ main(int argc, char **argv)
delta
.
ndz
->
maplo
=
ndz2
.
ndz
->
maplo
;
delta
.
ndz
->
maphi
=
ndz2
.
ndz
->
maphi
;
#if
1
#if
0
printf("==== Delta map ");
ndz_hashmap_dump(delta.map, (debug==0));
printf("==== Old map stats:");
...
...
@@ -862,7 +862,8 @@ main(int argc, char **argv)
free
(
cstate
);
/* readjust to reflect the actual number of hash entries */
delta
.
ndz
->
hashentries
=
delta
.
ndz
->
hashcurentry
;
if
(
!
fullsig
)
delta
.
ndz
->
hashentries
=
delta
.
ndz
->
hashcurentry
;
/* write the new sigfile */
if
(
ndz_writehashinfo
(
fullsig
?
ndz2
.
ndz
:
delta
.
ndz
,
...
...
clientside/os/imagezip/libndz/hash.c
View file @
be00c1c1
...
...
@@ -38,7 +38,7 @@
#include "libndz.h"
#define COMPDELTA_DEBUG
//
#define COMPDELTA_DEBUG
char
*
ndz_hash_dump
(
unsigned
char
*
h
,
int
hlen
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment