mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user