]> git.hungrycats.org Git - bees/commit
extent scan: log the bfr when removing a prealloc extent
authorZygo Blaxell <bees@furryterror.org>
Sun, 15 Jun 2025 07:19:33 +0000 (03:19 -0400)
committerZygo Blaxell <bees@furryterror.org>
Thu, 19 Jun 2025 02:33:05 +0000 (22:33 -0400)
commit6c36f4973fb7de35ca72f04afdaaa3955b507486
treec830c0ed27920d4d2b2704599516555b5bea4bdc
parentb1bd99c077a1e121fb3989b5655eba3387b07f5b
extent scan: log the bfr when removing a prealloc extent

With subvol scan, the crawl task name is the subvol/inode pair
corresponding to the file offset in the log message.  The identity of
the file can be determined by looking up the subvol/inode pair in the
log message.

With extent scan, the crawl task name is the extent bytenr corresponding
to the file offset in the log message.  This extent is deleted when the
log message is emitted, so a later lookup on the extent bytenr will not
find any references to the extent, and the identity of the file cannot
be determined.

Log the bfr, which does a /proc lookup on the name of the fd, so the
filename is logged.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc