Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Dec 17, 2023
1 parent d178165 commit e6cef7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion scripts/tile_gen/extract_btrfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rm -f image.btrfs


# 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
Expand Down Expand Up @@ -35,3 +35,4 @@ sudo ../../tile_gen/venv/bin/python ../../tile_gen/shrink_btrfs.py image.btrfs \

# pigz -k image.btrfs --fast

# rsync -avH mnt_rw/extract/ mnt_rw2/extract/ > rsync_out.log 2> rsync_err.log
7 changes: 4 additions & 3 deletions scripts/tile_gen/extract_ext4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
# 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.
#
# -T news or small
# inode_size = 128 (minimum)
# inode_ratio = 16384 (default but experimenting)


sudo umount mnt || true
Expand All @@ -27,16 +28,16 @@ rm -f image.ext4

# make a sparse file
# make sure it's bigger then the current OSM output
fallocate -l 300G image.ext4
fallocate -l 200G image.ext4


mke2fs -t ext4 -v \
-m 0 \
-F \
-O ^has_journal,^huge_file,^metadata_csum,^64bit,^extra_isize \
-E lazy_itable_init=0,nodiscard \
-T small \
-I 128 \
-i 16384 \
image.ext4

mkdir mnt
Expand Down

0 comments on commit e6cef7e

Please sign in to comment.