Change filename suffix of raw images from .img to .raw

This commit is contained in:
2023-01-04 01:24:35 +00:00
parent 887b904904
commit 464b92cda4
64 changed files with 117 additions and 111 deletions
+1 -4
View File
@@ -17,10 +17,7 @@ tools/mkfilepattern
tools/lfbviewx
tools/randdir
*.img
*.img.xz
*.img.gz
*.img.lz4
*.img.info
*.raw
*.out.???
*.out.indent
.gdb_history
+36 -36
View File
@@ -8,27 +8,27 @@ TEMP_DIR:=$(shell mktemp -d)
LOOP_DEV=$(shell losetup --find)
XFS_MIN_PART_SIZE=300MiB
all: s05k s4k unicode v5 kolibri.img fat32_test0.img coverage gpt
all: s05k s4k unicode v5 kolibri.raw fat32_test0.raw coverage gpt
rmdir $(TEMP_DIR)
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 exfat_s05k_c8k_b8k.img exfat_s05k_c16k_b16k.img \
gpt_partitions_s05k.img
s05k: xfs_v4_ftype0_s05k_b2k_n8k.raw xfs_v4_ftype1_s05k_b2k_n8k.raw \
xfs_v4_xattr.raw xfs_v4_files_s05k_b4k_n8k.raw \
xfs_v4_ftype0_s05k_b2k_n8k_xattr.raw xfs_v4_btrees_l2.raw \
xfs_short_dir_i8.raw exfat_s05k_c8k_b8k.raw exfat_s05k_c16k_b16k.raw \
gpt_partitions_s05k.raw
s4k: xfs_v4_ftype0_s4k_b4k_n8k.img gpt_partitions_s4k.img
s4k: xfs_v4_ftype0_s4k_b4k_n8k.raw gpt_partitions_s4k.raw
unicode: xfs_v4_unicode.img
unicode: xfs_v4_unicode.raw
v5: xfs_v5_ftype1_s05k_b2k_n8k.img xfs_v5_files_s05k_b4k_n8k.img \
xfs_bigtime.img xfs_nrext64.img xfs_lookup_v5.img xfs_lookup_v4.img
v5: xfs_v5_ftype1_s05k_b2k_n8k.raw xfs_v5_files_s05k_b4k_n8k.raw \
xfs_bigtime.raw xfs_nrext64.raw xfs_lookup_v5.raw xfs_lookup_v4.raw
coverage: jfs.img xfs_borg_bit.img xfs_short_dir_i8.img
coverage: jfs.raw xfs_borg_bit.raw xfs_short_dir_i8.raw
gpt: gpt_partitions_s05k.img gpt_partitions_s4k.img
gpt: gpt_partitions_s05k.raw gpt_partitions_s4k.raw
gpt_partitions_s05k.img:
gpt_partitions_s05k.raw:
fallocate -l 1GiB $@
parted --script --align optimal $@ mktable gpt \
mkpart part0 1MiB 2MiB \
@@ -56,7 +56,7 @@ gpt_partitions_s05k.img:
mkpart part22 23MiB 24MiB \
mkpart part23 24MiB 25MiB
gpt_partitions_s4k.img:
gpt_partitions_s4k.raw:
fallocate -l 1GiB $@
sudo losetup -b 4096 $(LOOP_DEV) $@
sudo parted --script --align optimal $(LOOP_DEV) mktable gpt \
@@ -86,7 +86,7 @@ gpt_partitions_s4k.img:
mkpart part23 24MiB 25MiB
sudo losetup -d $(LOOP_DEV)
kolibri.img: ../default.skn ../fill.cur
kolibri.raw: ../default.skn ../fill.cur
touch $@
fallocate -z -o 0 -l 1440KiB $@
mkfs.vfat -n KOLIBRIOS -F 12 $@
@@ -97,14 +97,14 @@ kolibri.img: ../default.skn ../fill.cur
mmd -i $@ ::LIB
mcopy -vmoi $@ ../network.obj ::LIB/NETWORK.OBJ
jfs.img:
jfs.raw:
fallocate -l 16MiB $@
mkfs.jfs -q $@
fallocate -i -o 0 -l 1MiB $@
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_lookup_v4.img:
xfs_lookup_v4.raw:
fallocate -l 10GiB $@
mkfs.xfs -m crc=0 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -139,7 +139,7 @@ xfs_lookup_v4.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_lookup_v5.img:
xfs_lookup_v5.raw:
fallocate -l 10GiB $@
mkfs.xfs -m crc=1 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -174,7 +174,7 @@ xfs_lookup_v5.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_nrext64.img:
xfs_nrext64.raw:
fallocate -l 3000MiB $@
mkfs.xfs -i nrext64=1 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -203,7 +203,7 @@ xfs_nrext64.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_bigtime.img:
xfs_bigtime.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.xfs -m bigtime=1 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -233,14 +233,14 @@ xfs_bigtime.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_borg_bit.img:
xfs_borg_bit.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.xfs -n version=ci $@
fallocate -i -o 0 -l 1MiB $@
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_short_dir_i8.img:
xfs_short_dir_i8.raw:
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 $@
@@ -258,7 +258,7 @@ xfs_short_dir_i8.img:
parted --script --align optimal $@ mktable gpt
parted --script --align optimal $@ mkpart part0 1MiB 99%
xfs_v4_ftype0_s05k_b2k_n8k.img:
xfs_v4_ftype0_s05k_b2k_n8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
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 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -289,7 +289,7 @@ xfs_v4_ftype0_s05k_b2k_n8k.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v4_ftype1_s05k_b2k_n8k.img:
xfs_v4_ftype1_s05k_b2k_n8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
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 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -320,7 +320,7 @@ xfs_v4_ftype1_s05k_b2k_n8k.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v4_xattr.img:
xfs_v4_xattr.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.xfs -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -i maxpct=100 -n ftype=0 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR) -o attr2
@@ -343,7 +343,7 @@ xfs_v4_xattr.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v4_btrees_l2.img:
xfs_v4_btrees_l2.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
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 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -364,7 +364,7 @@ xfs_v4_btrees_l2.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v4_files_s05k_b4k_n8k.img:
xfs_v4_files_s05k_b4k_n8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.xfs -b size=4k -m crc=0,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -n size=8k,ftype=0 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -399,7 +399,7 @@ xfs_v4_files_s05k_b4k_n8k.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v4_ftype0_s4k_b4k_n8k.img:
xfs_v4_ftype0_s4k_b4k_n8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
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 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -432,7 +432,7 @@ xfs_v4_ftype0_s4k_b4k_n8k.img:
mkpart primary 1MiB 100%
sudo losetup -d $(LOOP_DEV)
xfs_v4_ftype0_s05k_b2k_n8k_xattr.img:
xfs_v4_ftype0_s05k_b2k_n8k_xattr.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
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 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -470,7 +470,7 @@ xfs_v4_ftype0_s05k_b2k_n8k_xattr.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v4_unicode.img:
xfs_v4_unicode.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.xfs -m crc=0,finobt=0,rmapbt=0,reflink=0 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -495,7 +495,7 @@ xfs_v4_unicode.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v5_ftype1_s05k_b2k_n8k.img:
xfs_v5_ftype1_s05k_b2k_n8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
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 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -526,7 +526,7 @@ xfs_v5_ftype1_s05k_b2k_n8k.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
xfs_v5_files_s05k_b4k_n8k.img:
xfs_v5_files_s05k_b4k_n8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.xfs -b size=4k -m crc=1,finobt=0,rmapbt=0,reflink=0 -d sectsize=512 -n size=8k,ftype=1 $@
sudo mount $(MOUNT_OPT) $@ $(TEMP_DIR)
@@ -555,17 +555,17 @@ xfs_v5_files_s05k_b4k_n8k.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
fat32_test0.img:
fat32_test0.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.fat -n KOLIBRIOS -F 32 $@
sudo mount -o codepage=866,iocharset=utf8,umask=111,dmask=000 $@ $(TEMP_DIR)
$(RANDDIR) $(TEMP_DIR) 1000 8 255 65536
$(DIRTOTEST) $(TEMP_DIR) fat32_test0.img hd0 > ../test/045_#f70_#fat32_test0.t
$(DIRTOTEST) $(TEMP_DIR) fat32_test0.raw hd0 > ../test/045_#f70_#fat32_test0.t
tree $(TEMP_DIR)
du -sh $(TEMP_DIR)
sudo umount $(TEMP_DIR)
exfat_s05k_c16k_b16k.img:
exfat_s05k_c16k_b16k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.exfat -L KOLIBRIOS -c 16k -b 16k $@
sudo mount -o codepage=866,iocharset=utf8,umask=111,dmask=000 $@ $(TEMP_DIR)
@@ -583,7 +583,7 @@ exfat_s05k_c16k_b16k.img:
parted --script --align optimal $@ mktable msdos
parted --script --align optimal $@ mkpart primary 1MiB 100%
exfat_s05k_c8k_b8k.img:
exfat_s05k_c8k_b8k.raw:
fallocate -l $(XFS_MIN_PART_SIZE) $@
mkfs.exfat -L KOLIBRIOS -c 8k -b 8k $@
sudo mount -o codepage=866,iocharset=utf8,umask=111,dmask=000 $@ $(TEMP_DIR)
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> ls70 /hd0/1/sf_empty
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k.raw hd0 -c 0
ls70 /hd0/1/sf_empty
ls70 /hd0/1/sf
ls70 /hd0/1/block
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> # zero length
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
# zero length
read70 /hd0/1/no_hole 0 0 -b
read70 /hd0/1/no_hole 1 0 -b
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> stat70 /hd0/1/
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
stat70 /hd0/1/
stat70 /hd0/1/hole_begin
disk_del hd0
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> pwd
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
pwd
cd /hd0
pwd
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> # hole begin
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
# hole begin
# zero length
read70 /hd0/1/hole_begin 0 0 -b
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> stat70 /hd0/1/sf_empty
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_ftype1_s05k_b2k_n8k.raw hd0 -c 0
stat70 /hd0/1/sf_empty
stat70 /hd0/1/sf_empty/.
stat70 /hd0/1/sf_empty/..
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_ftype0_s4k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_ftype0_s4k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=4096, capacity=77056 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=256, length=76800 (300 MiB)
/> ls70 /hd0/1/sf
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_ftype0_s4k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_ftype0_s4k_b4k_n8k.raw hd0 -c 0
ls70 /hd0/1/sf
ls70 /hd0/1/block
ls70 /hd0/1/leaf
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.img hd0 -c 0
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> ls70 /hd0/1/sf_empty
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.img hd0 -c 0
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.raw hd0 -c 0
ls70 /hd0/1/sf_empty
ls70 /hd0/1/sf
ls70 /hd0/1/block
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.img hd0 -c 0
/> disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> stat70 /hd0/1/sf_empty
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.img hd0 -c 0
disk_add ../img/xfs_v4_ftype0_s05k_b2k_n8k_xattr.raw hd0 -c 0
stat70 /hd0/1/sf_empty
stat70 /hd0/1/sf_empty/.
stat70 /hd0/1/sf_empty/..
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_unicode.img hd0 -c 0
/> disk_add ../img/xfs_v4_unicode.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/>
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_unicode.img hd0 -c 0
disk_add ../img/xfs_v4_unicode.raw hd0 -c 0
stat80 /hd0/1/dir0
stat80 /hd0/1/dir0/
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> ls70 /hd0/1/sf_empty
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.img hd0 -c 0
disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.raw hd0 -c 0
ls70 /hd0/1/sf_empty
ls70 /hd0/1/sf
ls70 /hd0/1/block
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> stat70 /hd0/1/sf_empty
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.img hd0 -c 0
disk_add ../img/xfs_v5_ftype1_s05k_b2k_n8k.raw hd0 -c 0
stat70 /hd0/1/sf_empty
stat70 /hd0/1/sf_empty/.
stat70 /hd0/1/sf_empty/..
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v5_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v5_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> # hole begin
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v5_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v5_files_s05k_b4k_n8k.raw hd0 -c 0
# hole begin
# zero length
read70 /hd0/1/hole_begin 0 0 -b
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v5_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v5_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> # zero length
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v5_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v5_files_s05k_b4k_n8k.raw hd0 -c 0
# zero length
read70 /hd0/1/no_hole 0 0 -b
read70 /hd0/1/no_hole 1 0 -b
+2 -2
View File
@@ -1,7 +1,7 @@
/> umka_init
/> set_mouse_pos_screen 40 30
/> #disk_add ../img/kolibri.img rd -c 0
/> ramdisk_init ../img/kolibri.img
/> #disk_add ../img/kolibri.raw rd -c 0
/> ramdisk_init ../img/kolibri.raw
/rd: sector_size=512, capacity=2880 (1440 kiB), num_partitions=1
/rd/1: fs=fat, start=0, length=2880 (1440 kiB)
/> set_skin /sys/DEFAULT.SKN
+2 -2
View File
@@ -1,7 +1,7 @@
umka_init
set_mouse_pos_screen 40 30
#disk_add ../img/kolibri.img rd -c 0
ramdisk_init ../img/kolibri.img
#disk_add ../img/kolibri.raw rd -c 0
ramdisk_init ../img/kolibri.raw
set_skin /sys/DEFAULT.SKN
window_redraw 1
draw_window 10 300 5 200 0x000088 1 1 1 0 1 4 hello
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
/> disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/>
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.img hd0 -c 0
disk_add ../img/xfs_v4_files_s05k_b4k_n8k.raw hd0 -c 0
read70 /hd0/1/4GiB_plus 0x3ff4 11 -b
read70 /hd0/1/4GiB_plus 0x3ff5 11 -b
+2 -2
View File
@@ -1,9 +1,9 @@
/> umka_init
/> disk_add ../img/jfs.img hd0 -c 0
/> disk_add ../img/jfs.raw hd0 -c 0
/hd0: sector_size=512, capacity=34816 (17 MiB), num_partitions=1
/hd0/1: fs=???, start=2048, length=32768 (16 MiB)
/> disk_del hd0
/> disk_add ../img/xfs_borg_bit.img hd0 -c 0
/> disk_add ../img/xfs_borg_bit.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=???, start=2048, length=614400 (300 MiB)
/> disk_del hd0
+2 -2
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/jfs.img hd0 -c 0
disk_add ../img/jfs.raw hd0 -c 0
disk_del hd0
disk_add ../img/xfs_borg_bit.img hd0 -c 0
disk_add ../img/xfs_borg_bit.raw hd0 -c 0
disk_del hd0
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_v4_btrees_l2.img hd0 -c 0
/> disk_add ../img/xfs_v4_btrees_l2.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/>
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_v4_btrees_l2.img hd0 -c 0
disk_add ../img/xfs_v4_btrees_l2.raw hd0 -c 0
ls80 /hd0/1/dir_btree_l2 -f 0 -c 1
ls80 /hd0/1/dir_btree_l2 -f 0 -c 99
+1 -1
View File
@@ -1,6 +1,6 @@
/> umka_set_boot_params --x_res 44 --y_res 44
/> umka_init
/> ramdisk_init ../img/kolibri.img
/> ramdisk_init ../img/kolibri.raw
/rd: sector_size=512, capacity=2880 (1440 kiB), num_partitions=1
/rd/1: fs=fat, start=0, length=2880 (1440 kiB)
/> set_skin /sys/DEFAULT.SKN
+1 -1
View File
@@ -1,6 +1,6 @@
umka_set_boot_params --x_res 44 --y_res 44
umka_init
ramdisk_init ../img/kolibri.img
ramdisk_init ../img/kolibri.raw
set_skin /sys/DEFAULT.SKN
window_redraw 1
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/fat32_test0.img hd0 -c 0
/> disk_add ../img/fat32_test0.raw hd0 -c 0
/hd0: sector_size=512, capacity=614400 (300 MiB), num_partitions=1
/hd0/1: fs=fat, start=0, length=614376 (307188 kiB)
/> ls80 /hd0/1/
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/fat32_test0.img hd0 -c 0
disk_add ../img/fat32_test0.raw hd0 -c 0
ls80 /hd0/1/
read70 /hd0/1/A 0 16388096 -h
ls80 /hd0/1/AJF/
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/exfat_s05k_c16k_b16k.img hd0 -c 0
/> disk_add ../img/exfat_s05k_c16k_b16k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=exfat, start=2048, length=614400 (300 MiB)
/>
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/exfat_s05k_c16k_b16k.img hd0 -c 0
disk_add ../img/exfat_s05k_c16k_b16k.raw hd0 -c 0
ls70 /hd0/1/dir_0 -f 0 -c 0
ls70 /hd0/1/dir_0 -f 0 -c 1
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/exfat_s05k_c8k_b8k.img hd0 -c 0
/> disk_add ../img/exfat_s05k_c8k_b8k.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=exfat, start=2048, length=614400 (300 MiB)
/>
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/exfat_s05k_c8k_b8k.img hd0 -c 0
disk_add ../img/exfat_s05k_c8k_b8k.raw hd0 -c 0
stat70 /hd0/1/dir_000
stat70 /hd0/1/dir_000/file_000
+1 -1
View File
@@ -1,6 +1,6 @@
/> umka_init
/> #set_mouse_pos_screen 40 30
/> ramdisk_init ../img/kolibri.img
/> ramdisk_init ../img/kolibri.raw
/rd: sector_size=512, capacity=2880 (1440 kiB), num_partitions=1
/rd/1: fs=fat, start=0, length=2880 (1440 kiB)
/> set_skin /sys/DEFAULT.SKN
+1 -1
View File
@@ -1,6 +1,6 @@
umka_init
#set_mouse_pos_screen 40 30
ramdisk_init ../img/kolibri.img
ramdisk_init ../img/kolibri.raw
set_skin /sys/DEFAULT.SKN
load_cursor_from_file /sys/fill.cur
@@ -1,6 +1,6 @@
/> umka_init
/>
/> ramdisk_init ../img/kolibri.img
/> ramdisk_init ../img/kolibri.raw
/rd: sector_size=512, capacity=2880 (1440 kiB), num_partitions=1
/rd/1: fs=fat, start=0, length=2880 (1440 kiB)
/> set_skin /sys/DEFAULT.SKN
+1 -1
View File
@@ -1,6 +1,6 @@
umka_init
ramdisk_init ../img/kolibri.img
ramdisk_init ../img/kolibri.raw
set_skin /sys/DEFAULT.SKN
window_redraw 1
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_bigtime.img hd0 -c 0
/> disk_add ../img/xfs_bigtime.raw hd0 -c 0
/hd0: sector_size=512, capacity=616448 (301 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=614400 (300 MiB)
/> ls70 /hd0/1/
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_bigtime.img hd0 -c 0
disk_add ../img/xfs_bigtime.raw hd0 -c 0
ls70 /hd0/1/
ls70 /hd0/1/dira
stat70 /hd0/1/dira -am
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_nrext64.img hd0 -c 0
/> disk_add ../img/xfs_nrext64.raw hd0 -c 0
/hd0: sector_size=512, capacity=6146048 (3001 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=6144000 (3000 MiB)
/> stat70 /hd0/1/dir_sf
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_nrext64.img hd0 -c 0
disk_add ../img/xfs_nrext64.raw hd0 -c 0
stat70 /hd0/1/dir_sf
stat70 /hd0/1/dir_block
stat70 /hd0/1/dir_leaf
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_lookup_v5.img hd0 -c 0
/> disk_add ../img/xfs_lookup_v5.raw hd0 -c 0
/hd0: sector_size=512, capacity=20973568 (10241 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=20971520 (10 GiB)
/> cd /hd0/1/dir_sf
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_lookup_v5.img hd0 -c 0
disk_add ../img/xfs_lookup_v5.raw hd0 -c 0
cd /hd0/1/dir_sf
stat70 d0000000000/d0000000000
stat70 d0000000001/d0000000001
+1 -1
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/xfs_lookup_v4.img hd0 -c 0
/> disk_add ../img/xfs_lookup_v4.raw hd0 -c 0
/hd0: sector_size=512, capacity=20973568 (10241 MiB), num_partitions=1
/hd0/1: fs=xfs, start=2048, length=20971520 (10 GiB)
/> cd /hd0/1/dir_sf
+1 -1
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/xfs_lookup_v4.img hd0 -c 0
disk_add ../img/xfs_lookup_v4.raw hd0 -c 0
cd /hd0/1/dir_sf
stat70 d0000000000/d0000000000
stat70 d0000000001/d0000000001
+2 -2
View File
@@ -1,5 +1,5 @@
/> umka_init
/> disk_add ../img/gpt_partitions_s05k.img hd0 -c 0
/> disk_add ../img/gpt_partitions_s05k.raw hd0 -c 0
/hd0: sector_size=512, capacity=2097152 (1 GiB), num_partitions=24
/hd0/1: fs=???, start=2048, length=2048 (1 MiB)
/hd0/2: fs=???, start=4096, length=2048 (1 MiB)
@@ -26,7 +26,7 @@
/hd0/23: fs=???, start=47104, length=2048 (1 MiB)
/hd0/24: fs=???, start=49152, length=2048 (1 MiB)
/> disk_del hd0
/> disk_add ../img/gpt_partitions_s4k.img hd0 -c 0
/> disk_add ../img/gpt_partitions_s4k.raw hd0 -c 0
/hd0: sector_size=4096, capacity=262144 (1 GiB), num_partitions=24
/hd0/1: fs=???, start=256, length=256 (1 MiB)
/hd0/2: fs=???, start=512, length=256 (1 MiB)
+2 -2
View File
@@ -1,5 +1,5 @@
umka_init
disk_add ../img/gpt_partitions_s05k.img hd0 -c 0
disk_add ../img/gpt_partitions_s05k.raw hd0 -c 0
disk_del hd0
disk_add ../img/gpt_partitions_s4k.img hd0 -c 0
disk_add ../img/gpt_partitions_s4k.raw hd0 -c 0
disk_del hd0
+7 -7
View File
@@ -19,11 +19,6 @@
#include "vdisk/raw.h"
#include "vdisk/qcow2.h"
#ifdef _WIN32
#define fseeko _fseeki64
#define ftello _ftelli64
#endif
STDCALL int
vdisk_querymedia(void *userdata, diskmediainfo_t *minfo) {
COVERAGE_OFF();
@@ -47,10 +42,15 @@ vdisk_adjust_cache_size(void *userdata, size_t suggested_size) {
struct vdisk*
vdisk_init(const char *fname, int adjust_cache_size, size_t cache_size) {
size_t fname_len = strlen(fname);
size_t dot_raw_len = strlen(RAW_SUFFIX);
size_t dot_qcow2_len = strlen(QCOW2_SUFFIX);
struct vdisk *disk;
if (strstr(fname, ".img")) {
if (fname_len > dot_raw_len
&& !strcmp(fname + fname_len - dot_raw_len, RAW_SUFFIX)) {
disk = (struct vdisk*)vdisk_init_raw(fname);
} else if (strstr(fname, ".qcow2")) {
} else if (fname_len > dot_qcow2_len
&& !strcmp(fname, QCOW2_SUFFIX)) {
disk = (struct vdisk*)vdisk_init_qcow2(fname);
} else {
fprintf(stderr, "[vdisk] file has unknown format: %s\n", fname);
+2
View File
@@ -13,6 +13,8 @@
#include <stdio.h>
#include "../vdisk.h"
#define QCOW2_SUFFIX ".qcow2"
struct vdisk_qcow2 {
struct vdisk vdisk;
FILE *file;
+5
View File
@@ -3,6 +3,11 @@
#include "../trace.h"
#include "raw.h"
#ifdef _WIN32
#define fseeko _fseeki64
#define ftello _ftelli64
#endif
STDCALL void
vdisk_raw_close(void *userdata) {
COVERAGE_OFF();
+2
View File
@@ -13,6 +13,8 @@
#include <stdio.h>
#include "../vdisk.h"
#define RAW_SUFFIX ".raw"
struct vdisk_raw {
struct vdisk vdisk;
FILE *file;