summaryrefslogtreecommitdiffstats
path: root/scripts/release.sh
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-12-20 04:10:25 +0000
committerJakub Hrozek <jhrozek@redhat.com>2012-12-20 20:06:35 +0100
commit2184c4748c19dfe1a0640e121ee73797ecd13ded (patch)
treeb1613d624a61240faa83a0e395efafdca9de52fd /scripts/release.sh
parentb2c0f39bdb4153308b35c500a6c005623f9dcd55 (diff)
downloadsssd-2184c4748c19dfe1a0640e121ee73797ecd13ded.tar.gz
sssd-2184c4748c19dfe1a0640e121ee73797ecd13ded.tar.xz
sssd-2184c4748c19dfe1a0640e121ee73797ecd13ded.zip
Carefully check records when forcibly invalidating
We should never try to invalidate an already invalid record as internal pointers will not be consistent. Carefully test that the record really is valid when we are fishing for free space, and properly invalidate records or return a fatal error if something goes wrong. In order to make the code more robust always invalidate the whole data space on initialization by setting all bits to 1, and make sure to invalidate the whole last allocated slot by converting rec->len to the number of slots instead of just the space used.
Diffstat (limited to 'scripts/release.sh')
0 files changed, 0 insertions, 0 deletions