Re: file system question

From: Ram Gupta
Date: Thu Feb 09 2006 - 16:52:59 EST


On 2/9/06, kapil a <kapilann@xxxxxxxxx> wrote:
> I am only sending the relevant stuff.
>
> My strace output :
>
> fstat64(3, {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
> getdents64(3, /* 3 entries */, 4096) = 80
> getdents64(3, /* 0 entries */, 4096) = 0
> close(3) = 0
> exit_group(0)
>
> strace output on a partition under ext2
>
> fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
> getdents64(3, /* 4 entries */, 4096) = 104
> getdents64(3, /* 0 entries */, 4096) = 0


Why dont you write a simple program which makes call to
open,read,write & others you want to test. That would not make these
unnecessary calls.

Regards
Ram Gupta
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/