Summary: | GELI data integrity verification should consider sparse zero pass-through | ||
---|---|---|---|
Product: | Base System | Reporter: | Mike <5ukk2nmn43> |
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Not Accepted | ||
Severity: | Affects Some People | CC: | delphij |
Priority: | --- | ||
Version: | 10.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Mike
2014-08-29 17:17:55 UTC
Although I think this is an useful feature request to some extent, it's not really trivial to implement because in order to support it the GELI model has to keep track of which block is presumed to be zero's, and that bookkeeping information has to be stored somewhere. There are legitimate reasons to always perform full initialization of the provider, by the way, because the size of data stored in the encrypted storage is revealed if that's not done, for example. A more generic solution would probably be making GELI init to perform the initialization in background and have it mark the provider as "need initialization", and upon attach the provider initializes itself in the background. This, however, would complicate the provider quite a bit because it needs to be able to recover from power outage, etc. without damaging data. (This may be a good candidate for a summer of project project). |