summaryrefslogtreecommitdiff
path: root/libstore/zero.c
diff options
context:
space:
mode:
authorSergio Lopez <sergio.lopez@sinrega.org>2010-08-27 00:24:01 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-27 00:24:01 +0200
commit7d0fdfd0a3e5165020e11892079154ef1e1d691f (patch)
tree457fda92a6a209bf0c103a915928c809d097d5d6 /libstore/zero.c
parenta60414ee7fdabb2bdfb17fe82b9a09f811bd2de0 (diff)
make unblocked reads from external objects return a zeroed page.
* serverboot/default_pager.c (struct dstruct): Add boolean_t external field. (default_pager_add): Set ds->external to TRUE or FALSE depending whether the object is external. (default_read): Add external parameter. If no_block(block) returns 1, if external is TRUE, zero fill the page and return PAGER_SUCCESS instead of PAGER_ABSENT. (seqnos_memory_object_data_request): Pass ds->external as additional parameter to default_read.
Diffstat (limited to 'libstore/zero.c')
0 files changed, 0 insertions, 0 deletions