Skip to content

Commit a52497c

Browse files
committed
Log when we're opening and closing files for basic reads
1 parent fab4ea6 commit a52497c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sparsebundlefs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,12 @@ static int sparsebundle_read_process_band(const char *band_path, size_t length,
255255
syslog(LOG_DEBUG, "reading %zu bytes at offset %ju into %p",
256256
length, uintmax_t(offset), static_cast<void *>(*buffer));
257257

258+
syslog(LOG_DEBUG, "opening %s", band_path);
258259
int band_file = open(band_path, O_RDONLY);
259260
if (band_file != -1) {
260261
read = pread(band_file, *buffer, length, offset);
262+
263+
syslog(LOG_DEBUG, "closing %s", band_path);
261264
close(band_file);
262265

263266
if (read == -1) {

0 commit comments

Comments
 (0)