This commit is contained in:
Zsolt Ero
2023-12-17 23:47:46 +01:00
parent d178165b5d
commit e6cef7eb40
2 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ rm -f image.btrfs
# make an empty file that's definitely bigger then the current OSM output # make an empty file that's definitely bigger then the current OSM output
fallocate -l 300G image.btrfs fallocate -l 200G image.btrfs
# metadata: single needed as default is now DUP # metadata: single needed as default is now DUP
@@ -35,3 +35,4 @@ sudo ../../tile_gen/venv/bin/python ../../tile_gen/shrink_btrfs.py image.btrfs \
# pigz -k image.btrfs --fast # pigz -k image.btrfs --fast
# rsync -avH mnt_rw/extract/ mnt_rw2/extract/ > rsync_out.log 2> rsync_err.log

View File

@@ -17,7 +17,8 @@
# lazy_itable_init - inode table is fully initialized at the time of file system creation # lazy_itable_init - inode table is fully initialized at the time of file system creation
# nodiscard - Do not attempt to discard blocks at mkfs time. # nodiscard - Do not attempt to discard blocks at mkfs time.
# #
# -T news or small # inode_size = 128 (minimum)
# inode_ratio = 16384 (default but experimenting)
sudo umount mnt || true sudo umount mnt || true
@@ -27,7 +28,7 @@ rm -f image.ext4
# make a sparse file # make a sparse file
# make sure it's bigger then the current OSM output # make sure it's bigger then the current OSM output
fallocate -l 300G image.ext4 fallocate -l 200G image.ext4
mke2fs -t ext4 -v \ mke2fs -t ext4 -v \
@@ -35,8 +36,8 @@ mke2fs -t ext4 -v \
-F \ -F \
-O ^has_journal,^huge_file,^metadata_csum,^64bit,^extra_isize \ -O ^has_journal,^huge_file,^metadata_csum,^64bit,^extra_isize \
-E lazy_itable_init=0,nodiscard \ -E lazy_itable_init=0,nodiscard \
-T small \
-I 128 \ -I 128 \
-i 16384 \
image.ext4 image.ext4
mkdir mnt mkdir mnt