Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
d49f707a
Commit
d49f707a
authored
May 29, 2012
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync the complete sign area on smp_sync_sign
parent
f3617f9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
storage_persistent_subr.c
bin/varnishd/storage/storage_persistent_subr.c
+1
-1
persistent.h
include/persistent.h
+2
-0
No files found.
bin/varnishd/storage/storage_persistent_subr.c
View file @
d49f707a
...
...
@@ -159,7 +159,7 @@ smp_sync_sign(const struct smp_signctx *ctx)
int
i
;
/* XXX: round to pages */
i
=
msync
((
void
*
)
ctx
->
ss
,
ctx
->
ss
->
length
+
S
HA256_LEN
,
MS_SYNC
);
i
=
msync
((
void
*
)
ctx
->
ss
,
ctx
->
ss
->
length
+
S
MP_SIGN_SPACE
,
MS_SYNC
);
if
(
i
&&
0
)
fprintf
(
stderr
,
"SyncSign(%p %s) = %d %s
\n
"
,
ctx
->
ss
,
ctx
->
id
,
i
,
strerror
(
errno
));
...
...
include/persistent.h
View file @
d49f707a
...
...
@@ -111,6 +111,8 @@ struct smp_sign {
char
ident
[
8
];
uint32_t
unique
;
uint64_t
mapped
;
/* The length field is the length of the signed data only
* (does not include struct smp_sign) */
uint64_t
length
;
/* NB: Must be last */
};
...
...
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