bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: e2fslibs for ext2fs?


From: Marco Gerards
Subject: Re: e2fslibs for ext2fs?
Date: 14 Aug 2003 21:03:20 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Robert Millan <zeratul2@wanadoo.es> writes:

> Hi there,
> 
> I recently came across the "e2tools" [1] package which is basicaly like
> "mtools" but for ext2. (btw I even made a Debian package [2] which is now used
> by GRUB to produce these nice GRUB rescue floppies automagicaly [3])
> 
> The interesting point for the Hurd is that e2tools uses library calls in
> e2fslibs to access the underlying ext2 filesystem. I don't have much clue
> with filesystem implementation so this might sound silly; Would it be
> feasible to rewrite the ext2fs server for using e2fslibs?

This doesn't sound logical to me. 

> At a fast glance, I can see interesting calls like:
> 
>  ext2fs_mkdir
>  ext2fs_file_open
>  ext2fs_file_get_size
>  ext2fs_file_lseek
>  ext2fs_file_read

Ext2fs doesn't have a mkdir like function. It is all in libdiskfs. See
ext2fs/dir.c to find  out how it works. Same for most other functions
you talk about.

file_read doesn't exists for example. What libdiskfs does is using the
file pager to read the file contents.
 
--
Marco





reply via email to

[Prev in Thread] Current Thread [Next in Thread]