Opened 3 years ago

#17056 new bug

Result of an access past storage capacity not unified

Reported by: dasebek Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

When overwriting the whole capacity of a storage device/partition with commands like

dd if=/dev/urandom of=/dev/disk/...,

each device driver seems to signal the end of device differently. When the above command reaches the end of the available capacity, the following scenarios happen:

Linux dd prints "No space left on device" and copying stops
Haiku (partition) dd prints "Invalid argument" and copying stops
Haiku (ATA raw) dd prints "General System Error" and copying stops
Haiku (SATA raw) error messages start being printed to syslog but no error is received by dd because the copying continues anyway
Haiku (Virtio-SCSI raw) dd prints "Invalid argument" and copying stops

Moreover, I cannot calculate a checksum of the device/partition because sha256sum thinks that an error happened when it reaches the end of the available capacity and receives "Invalid argument" instead of some other error code that would signal that it is, in fact, the end of file.

Change History (0)

Note: See TracTickets for help on using tickets.