mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45:45 +02:00
doc: comment updates
We stopped using FIEMAP for a number of reasons. Document some of them. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
efda609f66
commit
7ecead1700
@ -196,7 +196,7 @@ BeesResolver::chase_extent_ref(const BtrfsInodeOffsetRoot &bior, BeesBlockData &
|
|||||||
|
|
||||||
Fd file_fd = m_ctx->roots()->open_root_ino(bior.m_root, bior.m_inum);
|
Fd file_fd = m_ctx->roots()->open_root_ino(bior.m_root, bior.m_inum);
|
||||||
if (!file_fd) {
|
if (!file_fd) {
|
||||||
// Delete snapshots generate craptons of these
|
// Deleted snapshots generate craptons of these
|
||||||
// BEESINFO("No FD in chase_extent_ref " << bior);
|
// BEESINFO("No FD in chase_extent_ref " << bior);
|
||||||
BEESCOUNT(chase_no_fd);
|
BEESCOUNT(chase_no_fd);
|
||||||
return BeesFileRange();
|
return BeesFileRange();
|
||||||
|
@ -499,8 +499,13 @@ BeesTempFile::make_copy(const BeesFileRange &src)
|
|||||||
|
|
||||||
THROW_CHECK1(invalid_argument, src, src.size() > 0);
|
THROW_CHECK1(invalid_argument, src, src.size() > 0);
|
||||||
|
|
||||||
// FIXME: don't know where these come from, but we can't handle them.
|
// FIEMAP used to give us garbage data, e.g. distinct adjacent
|
||||||
// Grab a trace for the log.
|
// extents merged into a single entry in the FIEMAP output.
|
||||||
|
// FIEMAP didn't stop giving us garbage data, we just stopped
|
||||||
|
// using FIEMAP.
|
||||||
|
// We shouldn't get absurdly large extents any more; however,
|
||||||
|
// it's still a problem if we do, so bail out and leave a trace
|
||||||
|
// in the log.
|
||||||
THROW_CHECK1(invalid_argument, src, src.size() < BLOCK_SIZE_MAX_TEMP_FILE);
|
THROW_CHECK1(invalid_argument, src, src.size() < BLOCK_SIZE_MAX_TEMP_FILE);
|
||||||
|
|
||||||
realign();
|
realign();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user