3 ms·
Calling the use case esoteric is flatly wrong. It's literally how many disk images across decades of software work. It's how things like vnd(4) work. Nobody wo
by johnklos 3y ago
Calling the use case esoteric is flatly wrong. It's literally how many disk images across decades of software work. It's how things like vnd(4) work.
Nobody would've cared if it 1) wasn't turned on by default, and 2) didn't destructively change disk images.
It's a bit extreme to call people toxic because they got upset that a deliberate change caused data corruption.
- toast0 3y agoI don't think getting upset is toxic. But when you don't get the response you want from a small open source project, your next steps shouldn't be to encourage more people to bother the developer(s); that's the toxic behavior IMHO.
- johnklos 3y agoAgree. I see the original post was making a distinction between people who were upset and the person who tried to encourage harassment. That person definitely was being toxic, so please disregard my comment about calling people toxic because I misread and agree with the label
- mlyle 3y agoNobody cared for a couple of years until one person started recruiting lots of people to bug the developer. It doesn't destructively change disk images; it appends something to the end. Other usages of disk images are fine: it's only if you want to use the disk images without a filesystem that you run into trouble. Metadata is useful. Metadata is a whole lot less useful if it's off-by-default.
- johnklos 3y agoThis is decidedly not the case, and it attempts to misattribute the issue. I cared because it happened to me. Like most people, I use a package management system (pkgsrc), so I wasn't on the simh mailing list and I didn't know about this change. I update simh via pkgsrc, tried to restart some virtual machines and had fscks corrupt the filesystems of those VMs. I went looking in the mailing lists, saw the discussions, saw how people asked nicely for him to do something more reasonable (the most reasonable would be to not default the feature to on), and saw how he simply doubled down and became dismissive. Note that I don't advocate for harassing people at all. That's a separate issue, and I condemn anyone who'd encourage harassment. "Metadata is a whole lot less useful if it's off-by-default." You're making excuses for him. We shouldn't force something on others because of specious suggestions that it might be useful in the future, particularly when it's actively harmful right now.
- mlyle 3y agoHow does fsck corrupt filesystems when the metadata is something that's post-pended past the end of the image? The reason why the original user (al20878) in the issue had a problem was because they were storing the images without a filesystem and expected them to have never changed size when they copied the image to the SD card. This isn't a typical use case. Can you explain how you ended up with corruption based on a small thing being postpended to a raw disk image?
- johnklos 3y agoI honestly don't know with certainty. I explicitly set drive types with "SET RA* TYPE=" (and RQ*) and image sizes with RAUSER, and suspect that the metadata got written to after the drive type's size offset in to the image. I noticed several other bugs: one of my disk images has the metadata block at the beginning of the image (no idea how). One of my systems (a big endian system - imagine Mark's shock and surprise when he learns that people who run less common systems in simh sometimes run... less common systems!) had appended an extra metadata block onto each image every time simh was relaunched. Once I realized that there were these blocks of extraneous data here and there, I started looking online to see if others had similar experiences, and came across the threads talking about this new "feature". And I disagree that writing disk images to disks / partitions without explicitly giving dd the size isn't a typical use case. I can't remember the last time I specified the size. The size of the file is always assumed to be the size of the write, and it'd be a very special edge case to deliver a file, then tell people to only write a specific size. Go download any .iso or .img file for installing any OS out there, and show me on the download page where we're told to stop after a certain byte (block) count if you disagree.
- mlyle 3y ago> I started looking online to see if others had similar experiences, and came across the threads talking about this new "feature". OK, then it sounds like you have a legitimate bug: a far clearer report than anyone else has provided here. Perhaps you should communicate it. > And I disagree that writing disk images to disks / partitions without explicitly giving dd the size isn't a typical use case. ' I didn't say that. I just said (in other comments) that if you overrun the size of the device or partition, the kernel reports an error and then dd whines that it couldn't write the last bit. $ sudo dd if=/dev/urandom bs=512 of=/dev/fd0 dd: error writing '/dev/fd0': No space left on device 2881+0 records in 2880+0 records out 1474560 bytes (1.5 MB, 1.4 MiB) copied The only person in the issue with data loss is the reporter, who was dding image files onto offsets on an unformatted SD card. When one of them got longer, it created problems-- overwriting the first bit of the next image. If you're doing something like that, you really ought to be providing the size.