[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Are there still machines with PAGE_SHIFT 16 or larger ?



On Wed, Nov 11, 2020 at 11:32 AM Thomas Schmitt <scdbackup@gmx.net> wrote:
> Anatoly Pugachev wrote:
> > > > $ ssh gcc203 getconf PAGESIZE
> > > > 65536
> I wrote:
> > > If there is a machine of that kind which can be used for a short bitrot
> > > test of the existing kernel with CONFIG_ZISOFS=y (which is usually already
> > > set), i'd be glad to propose a few shell commands and a xorriso run.
> > > 5 minutes. Less than 1.5 MB temporary disk space.

mator@chubaka:~$ getconf PAGESIZE
65536
mator@chubaka:~$ uname -a
Linux chubaka 5.9.0-1-powerpc64 #1 SMP Debian 5.9.1-1 (2020-10-17)
ppc64 GNU/Linux
mator@chubaka:~$ grep -i CONFIG_ZISOFS /boot/config-5.9.0-1-powerpc64
CONFIG_ZISOFS=y

mator@chubaka:~$ xorriso -list_extras
xorriso 1.5.2 : RockRidge filesystem manipulator, libburnia project.

List of xorriso extra features. yes = enabled , no = disabled
Local ACL    : yes
Local xattr  : yes
Jigdo files  : yes
zisofs       : yes
Ext. filters : yes , setuid banned
DVD obs 64 kB: no
Readline     : yes

mator@chubaka:~$ for i in {0..9}
>   do
>     dd if=/dev/zero bs=1K count=100 2>/dev/null | tr '\0' "$i"
>   done >/tmp/1mb
mator@chubaka:~$ ls -lh /tmp/1mb
-rw-r--r-- 1 mator mator 1000K Nov 11 14:38 /tmp/1mb

mator@chubaka:~$ hd /tmp/1mb
00000000  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
*
00019000  31 31 31 31 31 31 31 31  31 31 31 31 31 31 31 31  |1111111111111111|
*
00032000  32 32 32 32 32 32 32 32  32 32 32 32 32 32 32 32  |2222222222222222|
*
0004b000  33 33 33 33 33 33 33 33  33 33 33 33 33 33 33 33  |3333333333333333|
*
00064000  34 34 34 34 34 34 34 34  34 34 34 34 34 34 34 34  |4444444444444444|
*
0007d000  35 35 35 35 35 35 35 35  35 35 35 35 35 35 35 35  |5555555555555555|
*
00096000  36 36 36 36 36 36 36 36  36 36 36 36 36 36 36 36  |6666666666666666|
*
000af000  37 37 37 37 37 37 37 37  37 37 37 37 37 37 37 37  |7777777777777777|
*
000c8000  38 38 38 38 38 38 38 38  38 38 38 38 38 38 38 38  |8888888888888888|
*
000e1000  39 39 39 39 39 39 39 39  39 39 39 39 39 39 39 39  |9999999999999999|
*
000fa000


$ xorriso -outdev /tmp/test.iso \
>           -map /tmp/1mb /1mb \
>           -zisofs block_size=32k \
>           -set_filter_r --zisofs / -- \
>           -padding 0 -compliance no_emul_toc
xorriso 1.5.2 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev '/tmp/test.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 35.8g free
xorriso : UPDATE :       1 files added in 1 seconds
Added to ISO image: file '/1mb'='/tmp/1mb'
xorriso : UPDATE :       1 file filters processed in 1 seconds
ISO image produced: 34 sectors
Written to medium : 34 sectors at LBA 0
Writing to '/tmp/test.iso' completed successfully.


mator@chubaka:~$ ls -lh /tmp/test.iso
-rw-r--r-- 1 mator mator 68K Nov 11 14:41 /tmp/test.iso


mator@chubaka:~$ sudo mount -o loop,ro /tmp/test.iso /mnt

mator@chubaka:~$ md5sum /tmp/1mb
5e8131627edf05ecdd02f26b28aa6f8f  /tmp/1mb
mator@chubaka:~$ ls -l /mnt
total 2
-rw-r--r-- 1 mator mator 1024000 Nov 11 14:38 1mb
mator@chubaka:~$ md5sum /mnt/1mb
md5sum: /mnt/1mb: Input/output error


# kernel logs

mator@chubaka:~$ journalctl -k -e -n 5
-- Logs begin at Sun 2020-01-05 12:08:10 MSK, end at Wed 2020-11-11
14:45:09 MSK. --
Nov 05 11:23:28 chubaka kernel: ibmebus port0 eth0: Physical port up
Nov 05 11:23:28 chubaka kernel: ibmebus port0 eth0: External switch
port is backup port
Nov 11 14:42:12 chubaka kernel: loop: module loaded
Nov 11 14:42:12 chubaka kernel: ISO 9660 Extensions: RRIP_1991A
Nov 11 14:44:30 chubaka kernel: ISO 9660 Extensions: RRIP_1991A


mator@chubaka:~$ strace md5sum /mnt/1mb
...
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3035952, ...}) = 0
mmap(NULL, 3035952, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fff946b0000
close(3)                                = 0
openat(AT_FDCWD, "/mnt/1mb", O_RDONLY)  = 3
fadvise64(3, 0, 0, POSIX_FADV_SEQUENTIAL) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1024000, ...}) = 0
read(3, 0x10010051620, 32768)           = -1 EIO (Input/output error)
write(2, "md5sum: ", 8md5sum: )                 = 8
write(2, "/mnt/1mb", 8/mnt/1mb)                 = 8
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0
read(4, "# Locale name alias data base.\n#"..., 4096) = 2996
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/libc.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
write(2, ": Input/output error", 20: Input/output error)    = 20
write(2, "\n", 1
)                       = 1
_llseek(3, 0, [0], SEEK_CUR)            = 0
close(3)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++


Reply to: