[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Loopback device for MiNT, request for comments
Le Fri, 29 Apr 2005 16:07:41 -0500
Evan Langlois <Evan@CoolRunningConcepts.com> a écrit:
> I wasn't even aware that MiNT allowed mounting filesystems at
> run-time. What system call is used to do this?
See Dcntl() system call. You have FS_MOUNT and FS_UNMOUNT operations.
> Guess I'll have to make sure I include losetup in the list of busybox
> tools - assuming of course that the utility is somewhat compatible
> with the linux one. I'm not even entirely sure how losetup interfaces
> with the kernel at the moment.
Well, I don't know if my loop device implementation will be compatible
with the Linux's one.
> Loopback is also nice for implementing swap partitions, virtual floppy
> disks (many ST format disks are dd compatible, and therefore you can
> mount them with loopback), iso images, testing new filesystem drivers,
> encrypted filesystems, emulators .. all kinds of stuff!
I only wanted to teach myself how to write a MiNT device driver, with a
simple one.
--
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Spécialité: Développement, jeux