mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
fix
This commit is contained in:
@@ -5,15 +5,9 @@ rm -rf mnt
|
|||||||
rm -f image.btrfs
|
rm -f image.btrfs
|
||||||
|
|
||||||
|
|
||||||
# make a sparse file
|
# make an empty file that's definitely bigger then the current OSM output
|
||||||
# make sure it's bigger then the current OSM output
|
|
||||||
fallocate -l 300G image.btrfs
|
fallocate -l 300G image.btrfs
|
||||||
|
|
||||||
fallocate -l 10G image.btrfs
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# metadata: single needed as default is now DUP
|
# metadata: single needed as default is now DUP
|
||||||
mkfs.btrfs -v \
|
mkfs.btrfs -v \
|
||||||
@@ -22,12 +16,11 @@ mkfs.btrfs -v \
|
|||||||
|
|
||||||
# https://btrfs.readthedocs.io/en/latest/btrfs-man5.html#mount-options
|
# https://btrfs.readthedocs.io/en/latest/btrfs-man5.html#mount-options
|
||||||
# compression doesn't make sense, data is already gzip compressed
|
# compression doesn't make sense, data is already gzip compressed
|
||||||
|
|
||||||
mkdir -p mnt
|
mkdir -p mnt
|
||||||
sudo mount -v \
|
sudo mount -v \
|
||||||
-t btrfs \
|
-t btrfs \
|
||||||
-o noacl,nobarrier,noatime,max_inline=4096 \
|
-o noacl,nobarrier,noatime,max_inline=4096 \
|
||||||
image2.btrfs mnt
|
image.btrfs mnt
|
||||||
|
|
||||||
|
|
||||||
sudo chown ofm:ofm -R mnt
|
sudo chown ofm:ofm -R mnt
|
||||||
@@ -36,15 +29,6 @@ sudo chown ofm:ofm -R mnt
|
|||||||
> "extract_out.log" 2> "extract_err.log"
|
> "extract_out.log" 2> "extract_err.log"
|
||||||
|
|
||||||
|
|
||||||
# resize to min possible size
|
|
||||||
btrfs filesystem usage -b mnt
|
|
||||||
|
|
||||||
btrfs filesystem resize -10G mnt
|
|
||||||
sudo btrfs filesystem resize -100M mnt
|
|
||||||
|
|
||||||
|
|
||||||
sudo umount mnt
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user