2018-05-19 17:48:10 +02:00
|
|
|
|
MKDIRRANGE=../tools/mkdirrange
|
2018-06-18 03:55:51 +02:00
|
|
|
|
MKFILEPATTERN=../tools/mkfilepattern
|
2019-11-08 23:37:01 +01:00
|
|
|
|
MOUNT_OPT=-t xfs
|
2018-05-19 17:48:10 +02:00
|
|
|
|
TEMP_DIR:=$(shell mktemp -d)
|
|
|
|
|
|
2020-03-11 04:02:33 +01:00
|
|
|
|
all: s05k s4k unicode v5 kolibri.img coverage
|
2019-11-08 03:22:07 +01:00
|
|
|
|
rmdir $(TEMP_DIR)
|
2018-05-19 17:48:10 +02:00
|
|
|
|
|
2020-03-11 22:51:48 +01:00
|
|
|
|
s05k: xfs_v4_ftype0_s05k_b2k_n8k.img xfs_v4_ftype1_s05k_b2k_n8k.img xfs_v4_xattr.img xfs_v4_files_s05k_b4k_n8k.img xfs_v4_ftype0_s05k_b2k_n8k_xattr.img xfs_v4_btrees_l2.img xfs_short_dir_i8.img
|
2019-11-11 03:20:06 +01:00
|
|
|
|
|
|
|
|
|
s4k: xfs_v4_ftype0_s4k_b4k_n8k.img
|
|
|
|
|
|
2019-12-08 02:32:07 +01:00
|
|
|
|
unicode: xfs_v4_unicode.img
|
|
|
|
|
|
2020-01-27 23:54:57 +01:00
|
|
|
|
v5: xfs_v5_ftype1_s05k_b2k_n8k.img xfs_v5_files_s05k_b4k_n8k.img
|
|
|
|
|
|
2020-03-11 22:51:48 +01:00
|
|
|
|
coverage: jfs.img xfs_borg_bit.img xfs_short_dir_i8.img
|
2020-03-11 04:02:33 +01:00
|
|
|
|
|
2020-03-08 03:02:53 +01:00
|
|
|
|
kolibri.img: ../default.skn
|
|
|
|
|
touch $@
|
|
|
|
|
fallocate -z -o 0 -l 1440KiB $@
|
|
|
|
|
mkfs.vfat -n KOLIBRIOS -F 12 $@
|
|
|
|
|
mcopy -vmoi $@ $< ::DEFAULT.SKN
|
|
|
|
|
|
2020-03-11 04:02:33 +01:00
|
|
|
|
jfs.img:
|
|
|
|
|
fallocate -l 16MiB $@
|
|
|
|
|
mkfs.jfs -q $@
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
|
|
|
|
xfs_borg_bit.img:
|
|
|
|
|
fallocate -l 16MiB $@
|
|
|
|
|
mkfs.xfs -n version=ci $@
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
2020-03-11 22:51:48 +01:00
|
|
|
|
xfs_short_dir_i8.img:
|
|
|
|
|
echo -en "\x00" > $@
|
|
|
|
|
fallocate -i -o 0 -l 42TiB $@
|
|
|
|
|
mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100,size=256 -n size=8k,ftype=0 $@
|
|
|
|
|
#
|
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 5 0 244
|
|
|
|
|
#
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf/d0000000002_xx 7 10 0 244
|
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
2019-11-08 03:22:07 +01:00
|
|
|
|
xfs_v4_ftype0_s05k_b2k_n8k.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=0 $@
|
2019-11-08 03:22:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
2019-11-12 02:22:19 +01:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf_empty
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/block
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/block 0 5 234 10
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/leaf
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/leaf 0 40 214 30
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/node
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/node 0 1100 0 23
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2019-11-08 03:22:07 +01:00
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf 0 1000 201 43
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2019-11-08 03:22:07 +01:00
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf_free
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf_free 0 1200 201 43
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
2019-11-08 03:22:07 +01:00
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
2018-05-19 17:48:10 +02:00
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
2019-11-08 03:22:07 +01:00
|
|
|
|
|
|
|
|
|
xfs_v4_ftype1_s05k_b2k_n8k.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=1 $@
|
2019-11-08 03:22:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
2019-11-12 02:22:19 +01:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf_empty
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/block
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/block 0 5 234 10
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/leaf
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/leaf 0 40 214 30
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/node
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/node 0 1100 0 23
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf 0 1000 201 43
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf_free
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf_free 0 1200 201 43
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
2019-11-08 03:22:07 +01:00
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
2018-06-18 03:55:51 +02:00
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
2019-11-08 03:22:07 +01:00
|
|
|
|
|
|
|
|
|
xfs_v4_xattr.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n ftype=0 $@
|
2019-11-08 03:22:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR) -o attr2
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
2018-06-18 03:55:51 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 900 0 244
|
2018-06-18 03:55:51 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/leaf
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/leaf 0 600 0 244
|
2018-06-18 03:55:51 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/node
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/node 0 600 0 244
|
2018-06-18 03:55:51 +02:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree
|
2019-11-08 03:22:07 +01:00
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree 0 600 0 244
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
2019-11-08 03:22:07 +01:00
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
2018-06-18 03:55:51 +02:00
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
2019-11-08 03:22:07 +01:00
|
|
|
|
|
2020-03-11 04:02:33 +01:00
|
|
|
|
xfs_v4_btrees_l2.img:
|
2019-11-08 03:22:07 +01:00
|
|
|
|
fallocate -l 127MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=1k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=4k,ftype=1 $@
|
2019-11-08 03:22:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkdir $(TEMP_DIR)/dir_btree_l2
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/dir_btree_l2 0 193181 214 30
|
|
|
|
|
#
|
|
|
|
|
fallocate -l 4KiB $(TEMP_DIR)/file_btree_l2
|
|
|
|
|
for n in $$(seq 1 4000); do \
|
|
|
|
|
fallocate -i -l 4KiB -o 0KiB $(TEMP_DIR)/file_btree_l2 ; \
|
|
|
|
|
fallocate -z -l 4KiB -o 0KiB $(TEMP_DIR)/file_btree_l2 ; \
|
|
|
|
|
done
|
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/file_btree_l2 0 16388096
|
2018-06-18 03:55:51 +02:00
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
2019-11-08 03:22:07 +01:00
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
2018-05-19 17:48:10 +02:00
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
2019-11-08 03:22:07 +01:00
|
|
|
|
|
|
|
|
|
xfs_v4_files_s05k_b4k_n8k.img:
|
|
|
|
|
fallocate -l 127MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=4k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -n size=8k,ftype=0 $@
|
2019-11-08 03:22:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
2018-05-19 17:48:10 +02:00
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/no_hole 0 65536
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/hole_begin 0 65536
|
2019-10-28 04:10:38 +01:00
|
|
|
|
fallocate -p -o 0 -l 16KiB $(TEMP_DIR)/hole_begin
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/hole_middle 0 65536
|
2019-10-28 04:10:38 +01:00
|
|
|
|
fallocate -p -o 32KiB -l 16KiB $(TEMP_DIR)/hole_middle
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/hole_end 0 65536
|
2019-10-28 04:10:38 +01:00
|
|
|
|
fallocate -p -o 48KiB -l 16KiB $(TEMP_DIR)/hole_end
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
|
|
|
|
fallocate -l 4KiB $(TEMP_DIR)/btree_l1_no_hole
|
|
|
|
|
for n in $$(seq 1 2000); do \
|
|
|
|
|
fallocate -i -l 4KiB -o 0KiB $(TEMP_DIR)/btree_l1_no_hole ; \
|
|
|
|
|
fallocate -z -l 4KiB -o 0KiB $(TEMP_DIR)/btree_l1_no_hole ; \
|
|
|
|
|
done
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/btree_l1_no_hole 0 8196096
|
|
|
|
|
#
|
|
|
|
|
# fallocate -l 5GiB $(TEMP_DIR)/4GiB_plus
|
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/4GiB_plus 0x120008000 0x1000
|
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/4GiB_plus 0x120000000 0x4000
|
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/4GiB_plus 0xffffe000 0x4000
|
2020-03-08 18:59:41 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/4GiB_plus 0x4000 0x4000
|
2019-10-09 01:35:47 +02:00
|
|
|
|
#
|
2018-05-19 17:48:10 +02:00
|
|
|
|
sudo umount $(TEMP_DIR)
|
2019-11-08 03:22:07 +01:00
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
2019-10-09 01:35:47 +02:00
|
|
|
|
|
2019-11-11 03:20:06 +01:00
|
|
|
|
xfs_v4_ftype0_s4k_b4k_n8k.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=4k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=4k -i maxpct=100 -n size=8k,ftype=0 $@
|
2019-11-11 03:20:06 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
2019-11-12 02:22:19 +01:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf_empty
|
2019-11-11 03:20:06 +01:00
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/block
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/block 0 5 234 10
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/leaf 0 40 214 30
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/node
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/node 0 1100 0 23
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf 0 1000 201 43
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf_free
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf_free 0 1200 201 43
|
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
sudo losetup -b 4096 /dev/loop8 $@
|
|
|
|
|
sudo parted --script /dev/loop8 mktable gpt
|
|
|
|
|
sudo parted --script --align optimal /dev/loop8 mkpart primary 1MiB 100%
|
|
|
|
|
sudo losetup -d /dev/loop8
|
|
|
|
|
# parted --script $@ mktable gpt
|
|
|
|
|
# parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
2019-12-08 02:32:07 +01:00
|
|
|
|
xfs_v4_ftype0_s05k_b2k_n8k_xattr.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=2k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=0 $@
|
2019-12-08 02:32:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf_empty
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/sf_empty
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/sf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/block
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/block
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/block 0 5 234 10
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/leaf
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/leaf 0 40 214 30
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/node
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/node
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/node 0 1020 0 23
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/btree_leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf 0 1000 201 43
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf_free
|
|
|
|
|
setfattr -n user.pew_attr_pew -v pew_value_pew $(TEMP_DIR)/btree_leaf_free
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf_free 0 1200 201 43
|
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
|
|
|
|
xfs_v4_unicode.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -m crc=0,finobt=0,rmapbt=0,reflink=0 $@
|
2019-12-08 02:32:07 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
|
|
|
|
#
|
|
|
|
|
mkdir -p $(TEMP_DIR)/dir0
|
|
|
|
|
mkdir -p $(TEMP_DIR)/дир❦/дир11
|
|
|
|
|
mkdir -p $(TEMP_DIR)/❦❦❦/д❦р22
|
2020-03-11 22:51:48 +01:00
|
|
|
|
mkdir -p $(TEMP_DIR)/❦👩❦/
|
|
|
|
|
mkdir -p $(TEMP_DIR)/❦👩❦/👩❦❦/
|
|
|
|
|
mkdir -p $(TEMP_DIR)/❦👩❦/❦👩❦/
|
|
|
|
|
mkdir -p $(TEMP_DIR)/❦👩❦/❦❦👩/
|
2019-12-08 02:32:07 +01:00
|
|
|
|
mkdir $(TEMP_DIR)/дир3/
|
|
|
|
|
#
|
|
|
|
|
echo hello_world > $(TEMP_DIR)/dir0/file00
|
|
|
|
|
echo привет❦мир > $(TEMP_DIR)/❦❦❦/д❦р22/❦❦
|
|
|
|
|
echo привет💗мир > $(TEMP_DIR)/❦❦❦/д❦р22/💗💗
|
|
|
|
|
echo привет❦💗мир > $(TEMP_DIR)/дир3/файл33
|
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
2020-01-27 23:54:57 +01:00
|
|
|
|
xfs_v5_ftype1_s05k_b2k_n8k.img:
|
|
|
|
|
fallocate -l 63MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=2k -m crc=1,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n size=8k,ftype=1 $@
|
2020-01-27 23:54:57 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf_empty
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/sf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/sf 0 3 0 244
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/block
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/block 0 5 234 10
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/leaf 0 40 214 30
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/node
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/node 0 1100 0 23
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf 0 1000 201 43
|
|
|
|
|
#
|
|
|
|
|
mkdir $(TEMP_DIR)/btree_leaf_free
|
|
|
|
|
$(MKDIRRANGE) $(TEMP_DIR)/btree_leaf_free 0 1200 201 43
|
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
|
|
|
|
xfs_v5_files_s05k_b4k_n8k.img:
|
|
|
|
|
fallocate -l 127MiB $@
|
2020-03-11 04:02:33 +01:00
|
|
|
|
mkfs.xfs -b size=4k -m crc=1,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -n size=8k,ftype=1 $@
|
2020-01-27 23:54:57 +01:00
|
|
|
|
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
|
|
|
|
|
sudo chown $$USER $(TEMP_DIR) -R
|
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/no_hole 0 65536
|
2020-01-27 23:54:57 +01:00
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/hole_begin 0 65536
|
2020-01-27 23:54:57 +01:00
|
|
|
|
fallocate -p -o 0 -l 16KiB $(TEMP_DIR)/hole_begin
|
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/hole_middle 0 65536
|
2020-01-27 23:54:57 +01:00
|
|
|
|
fallocate -p -o 32KiB -l 16KiB $(TEMP_DIR)/hole_middle
|
|
|
|
|
#
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/hole_end 0 65536
|
2020-01-27 23:54:57 +01:00
|
|
|
|
fallocate -p -o 48KiB -l 16KiB $(TEMP_DIR)/hole_end
|
|
|
|
|
#
|
|
|
|
|
fallocate -l 4KiB $(TEMP_DIR)/btree_l1_no_hole
|
|
|
|
|
for n in $$(seq 1 2000); do \
|
|
|
|
|
fallocate -i -l 4KiB -o 0KiB $(TEMP_DIR)/btree_l1_no_hole ; \
|
|
|
|
|
fallocate -z -l 4KiB -o 0KiB $(TEMP_DIR)/btree_l1_no_hole ; \
|
|
|
|
|
done
|
2020-03-08 03:02:53 +01:00
|
|
|
|
$(MKFILEPATTERN) $(TEMP_DIR)/btree_l1_no_hole 0 8196096
|
2020-01-27 23:54:57 +01:00
|
|
|
|
#
|
|
|
|
|
sudo umount $(TEMP_DIR)
|
|
|
|
|
fallocate -i -o 0 -l 1MiB $@
|
|
|
|
|
parted --script $@ mktable gpt
|
|
|
|
|
parted --script --align optimal $@ mkpart primary 1MiB 100%
|
|
|
|
|
|
|
|
|
|
|