public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* Linux and amiga floppy images
@ 2008-10-13  2:20 Kolbjørn Barmen
  2008-10-13 10:05 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Kolbjørn Barmen @ 2008-10-13  2:20 UTC (permalink / raw)
  To: Linux/m68k


Hello!

I had a strange observation a few weeks ago that I intended to check with
you guys, but then forgot all about. :P

I was restoring some old amiga systems, and in that process needed to get
software onto floppies. I have a catweasel and can write out so called ADF
files (amiga floppy images) to floppies just fine with it (excellent
hardware). The problem I had was creating ADFs on linux, I assumes I could
just loopback-mount them with affs and just write files to them, but no -
I always ended up getting I/O-error, and the kernel put the filesystem
write-protected.

Deleting files seems to work ok, but once you try to write  a file, the
filesystem chokes, becomes write-protected and the resulting file is a
0-byte entry.

But I didnt give up there, I tried on different systems... much to my
amusement it worked fine on my linux/m68k systems - amigas, macs and
aranym alike!  OK, I thought, maybe endianness, so I tried on my ppc ibook
running linux - same failures as on the PCs. So - something is done very
correct on m68k in regard to affs, that isnt done correct on other archs.
Anyone know what that might be?

(All systems I tried with were running 2.6.2x, ubuntu, debian, gentoo)

Cheers!

-- kolla

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linux and amiga floppy images
  2008-10-13  2:20 Linux and amiga floppy images Kolbjørn Barmen
@ 2008-10-13 10:05 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2008-10-13 10:05 UTC (permalink / raw)
  To: Kolbjørn Barmen; +Cc: Linux/m68k

Kolbjørn Barmen <linux-m68k@kolla.no> writes:

> But I didnt give up there, I tried on different systems... much to my
> amusement it worked fine on my linux/m68k systems - amigas, macs and
> aranym alike!  OK, I thought, maybe endianness, so I tried on my ppc ibook
> running linux - same failures as on the PCs. So - something is done very
> correct on m68k in regard to affs, that isnt done correct on other archs.
> Anyone know what that might be?

If it's not the endianess then the other possible failure mode is
alignment: on m68k all types are at most aligned at a 2 byte boundary.
The structures in <linux/amigaffs.h> don't have any obvious alignment
problems, though.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-13 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13  2:20 Linux and amiga floppy images Kolbjørn Barmen
2008-10-13 10:05 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox