This commit is contained in:
Zsolt Ero
2024-06-11 01:40:26 +02:00
parent d95248ca9c
commit c05fd0801b
5 changed files with 14 additions and 14 deletions

View File

@@ -112,7 +112,7 @@ def write_tile_files(c, *, dir_path):
tile_path.hardlink_to(dedupl_path_fixed)
print(f'hard link created {i}/{total} {i / total * 100:.1f}%: {tile_path}')
except OSError as e:
# fixing BTRFS's 64k max link limit
# fixing Btrfs's 64k max link limit
if e.errno == 31:
bug_fix_dict.setdefault(dedupl_path, 0)
bug_fix_dict[dedupl_path] += 1

View File

@@ -19,8 +19,8 @@ SMALLEST_SIZE = 256 * 1024 * 1024
)
def cli(btrfs_img: Path):
"""
Shrinks a BTRFS image
// I cannot believe that BTRFS is over 15 years old,
Shrinks a Btrfs image
// I cannot believe that Btrfs is over 15 years old,
// yet there is no resize2fs tool which can shrink a disk image
// to minimum size.
// It cannot even tell you how much should be the right size,