Christoph Bugel wrote:
> nothing is broken.. I am just trying to understand how it works.
> (ok, and I am preparing for an O.S. exam at the openu.ac.il)
>
> I was thinking about block special files, and realized that I
> don't know a system call to read a specific block from a file.
> (I suspect it is 'read'??)
It is. If you want to read a specific block, use lseek() first.
> I thought 'fsck' probably uses such a system call, but I havent
> found out yet:
>
> 1) couldnt find fsck sources. (probably I don't have them)
> 2) I tried to use strace on fsck, but I don't see a system call
> reading from the filesystem (/dev/hda5) at all. how does it check
> the partition, then?
> is this maybe a technicality of strace? same reason that it doesn't
> show the exec() after the fork()?
You need to use the -f switch if you want to trace child processes as
well as the parent.
--
Glynn Clements <[EMAIL PROTECTED]>