Opened 2 years ago

Last modified 5 months ago

#17864 new bug

filesystem tools: dd, mkfs spurious failures

Reported by: thebuck Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: File Systems/FAT Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Tried to create a very small FAT partition file using dd and mkfs.

Got different errors from run to run:

~/Desktop> bash mf.sh
rm: cannot remove 'imgfile': No such file or directory
1+0 records in
1+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,188762 s, 178 MB/s
Press Return to continue
DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE
Press Return to mount now
Press Return to start cleanup now
~/Desktop> 
~/Desktop> bash mf.sh
rm: cannot remove 'imgfile': No such file or directory
1+0 records in
1+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,183239 s, 183 MB/s
Press Return to continue
DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE
DiskDeviceJobQueue::Execute(): executing job failed: Bad data
mkfs: Initialization of "Test" failed: Bad data
~/Desktop> bash mf.sh
rmdir: failed to remove 'imgdir': No such file or directory
1+0 records in
1+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,18322 s, 183 MB/s
Press Return to continue
DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE
Press Return to mount now
Press Return to start cleanup now
~/Desktop> bash mf.sh
rm: cannot remove 'imgfile': No such file or directory
1+0 records in
1+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,183171 s, 183 MB/s
Press Return to continue
DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE
Press Return to mount now
mount: General system error
~/Desktop> bash mf.sh
1+0 records in
1+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,183335 s, 183 MB/s
Press Return to continue
DiskDeviceJobQueue::Execute(): executing job: N8BPrivate15UninitializeJobE
DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE
DiskDeviceJobQueue::Execute(): executing job failed: Bad data
mkfs: Initialization of "Test" failed: Bad data
~/Desktop> 

The No such file or directory messages are expected when the previous run failed.

Attachments (5)

mf.sh (894 bytes ) - added by thebuck 2 years ago.
The script used in the terminal session.
shell-session.hrev57820.txt (5.8 KB ) - added by thebuck 5 months ago.
mount now reports "Invalid Argument" instead of "General system error".
syslog-tail.hrev57820.txt (18.2 KB ) - added by thebuck 5 months ago.
ext4_bfs_terminal.hrev57820.txt (8.9 KB ) - added by thebuck 5 months ago.
script change: fat→$1. ext4 reliably "mkfs: Parameters validation failed. Check what you wrote"-"0". BFS does this also, but on alternate invocations gives "DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE" instead; eventually drops into "DiskDeviceJobQueue::Execute(): executing job: N8BPrivate15UninitializeJobE"-"DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE"-"Press Return to mount now"-"mount: Invalid Argument", recoverable.
ext4_bfs_syslog-tail.hrev57820.txt (14.3 KB ) - added by thebuck 5 months ago.

Download all attachments as: .zip

Change History (12)

by thebuck, 2 years ago

Attachment: mf.sh added

The script used in the terminal session.

comment:1 by korli, 2 years ago

which hrev?

comment:2 by thebuck, 2 years ago

This was hrev56334-x86_64 on QEMU: qemu-system-x86_64 -cdrom haiku-master-hrev56334-x86_64-anyboot.iso -m 2.0G -accel kvm,thread=multi -machine vmport=off -smp 4 -no-hpet -device nec-usb-xhci,id=u,bus=pci.0,addr=0x4 -device usb-tablet,bus=u.0 -nic user,domainname=.

I had these issues back then at hrev55788 as well.

comment:3 by korli, 2 years ago

Component: File SystemsFile Systems/FAT

comment:4 by korli, 2 years ago

Priority: highnormal

comment:5 by waddlesplash, 5 months ago

Please retest after hrev57811.

by thebuck, 5 months ago

Attachment: shell-session.hrev57820.txt added

mount now reports "Invalid Argument" instead of "General system error".

by thebuck, 5 months ago

Attachment: syslog-tail.hrev57820.txt added

comment:6 by waddlesplash, 5 months ago

From your script:

# a BUG: dd fails to open with "Invalid Argument" error when of=/imgfile is used instead

This isn't a bug; the rootfs (/) does not support regular files (as it doesn't correspond to any location on the filesystem.)

comment:7 by waddlesplash, 5 months ago

Platform: x86-64All

It's possible the remaining problems are in the DiskDevice subsystem and not in the FAT driver. Do similar problems happen with any other FS?

by thebuck, 5 months ago

script change: fat→$1. ext4 reliably "mkfs: Parameters validation failed. Check what you wrote"-"0". BFS does this also, but on alternate invocations gives "DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE" instead; eventually drops into "DiskDeviceJobQueue::Execute(): executing job: N8BPrivate15UninitializeJobE"-"DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE"-"Press Return to mount now"-"mount: Invalid Argument", recoverable.

by thebuck, 5 months ago

Note: See TracTickets for help on using tickets.