Re: A userland implementation of a good filesystem in a file
From: Pascal Bourguignon (spam_at_mouse-potato.com)
Date: 08/24/04
- Next message: Joona I Palaste: "Re: how do I get content of clipboard on linux"
- Previous message: amsa: "Re: basic signal problem"
- In reply to: Shaun Clowes: "A userland implementation of a good filesystem in a file"
- Next in thread: Shaun Clowes: "Re: A userland implementation of a good filesystem in a file"
- Reply: Shaun Clowes: "Re: A userland implementation of a good filesystem in a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Aug 2004 08:05:19 +0200
"Shaun Clowes" <delius@no.spam.for.me.progsoc.org> writes:
> Hi All,
>
> I've done quite a bit of searching and surprisingly haven't found anything.
> Is anyone aware of an open source (or just free) implementation of a
> filesystem in a file?
>
> I'm thinking something along the lines of a library that provides filesystem
> type access to a file.
>
> For example
>
> FS *hey = fs_mount("/tmp/my.filesystem");
>
> FS_FILE *file = fs_open("/subdir/hey", O_RDWR);
>
> fs_read(buf, sizeof(buf), file);
>
> fs_umount(file);
>
> Has anyone seen anything like this previously? I'm kind of surprised since
> it seems like the kind of thing that would have been done before?
This is done everyday with Linux:
dd if=/dev/zero of=/tmp/fs_file bs=1k count=20k
mke2fs /tmp/fs_file
mount -o loop /tmp/fs_file /mnt
cp some_file /mnt
umount /mnt
-- __Pascal Bourguignon__ http://www.informatimago.com/ Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we.
- Next message: Joona I Palaste: "Re: how do I get content of clipboard on linux"
- Previous message: amsa: "Re: basic signal problem"
- In reply to: Shaun Clowes: "A userland implementation of a good filesystem in a file"
- Next in thread: Shaun Clowes: "Re: A userland implementation of a good filesystem in a file"
- Reply: Shaun Clowes: "Re: A userland implementation of a good filesystem in a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|