dazuko-help
[Top][All Lists]
Advanced

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

Re: [Dazuko-help] filesize=0


From: T.Aonuma
Subject: Re: [Dazuko-help] filesize=0
Date: Wed, 30 Mar 2005 13:01:40 +0900

Thank you. Mr. John Ogness.

When treating the file which has already existed, file size is displayed as zeri.
For example, it is a time of opening by vi.

--
OPEN uid=0 pid=1633 mode=384 flags=32962 file_uid=0 file_gid=0 file_device=2049 file_size=0 file=/root/test2/.p.swp
--

It is size zero when "OPEN" a "p.swp".
This can be understood.

--
OPEN uid=0 pid=1633 mode=438 flags=33345 file_uid=0 file_gid=0 file_device=2049 file_size=0 file=/root/test2/p
--

"/root/test2/p"  is existing.
Why is it file_size=0 ?




T.Aonuma wrote:
How are you using "FILE OPEN"? Can you provide some code?


I just use a sample for C language of this version and become it in this
way.

If you have the example program running with:

# ./example /tmp/test

and you do something like this:

$ cp /tmp/test/file1 /tmp/test/file2

you will see:

OPEN file_size:1024 file:/tmp/test/file1
OPEN file_size:0 file:/tmp/test/file2

This is correct behavior. The file that already exists (file1) will show the
correct file size. But the file that it is being copied to (file2) has a
file size of 0 when the open occurs, because the file is being created.

I hope this helps.

John Ogness

--
Dazuko Maintainer





reply via email to

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