I find this "small" problem:
I set quota fo user "test" to 204 blocks.
and store one big file "test" with full size ( 204 blocks).
quota -v test
Disk quotas for user test (uid 1010):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb1 204* 204 204 1 0 0
and run command "stat test":
File: "test"
Size: 204800 Blocks: 408 IO Block:
121234234 Regular File
Device: 811h/2065d Inode: 6300 Links: 1
Access: (0644/-rw-r--r--) Uid:(1010/test) Gid:(0/root)
Access: Wed Aug 13 16:10:21 2003
Modify: Wed Aug 13 16:12:43 2003
Change: Wed Aug 13 16:12:43 2003
next I run command
echo "s" >> test; stat test
File: "test"
Size: 204800 Blocks: 408 IO Block:
121234234 Regular File
Device: 811h/2065d Inode: 6300 Links: 1
Access: (0644/-rw-r--r--) Uid: (1010/test) Gid:(0/root)
Access: Wed Aug 13 16:10:21 2003
Modify: Wed Aug 13 16:14:38 2003
Change: Wed Aug 13 16:14:38 2003
the size is not change - this is OK !!
But Modify, and Change time is modified !!!
My system:
Linux kernel 2.4.21 from http://www.kernel.org
Thanx
youza
--
Potrebujete vice prostoru pro vase stranky?
Ptejte se na http://sluzby.volny.cz/cs/product/ftp_paid
"Youza Youzovic" <[email protected]> writes:
> echo "s" >> test; stat test
> File: "test"
> Size: 204800 Blocks: 408 IO Block:
> 121234234 Regular File
> Device: 811h/2065d Inode: 6300 Links: 1
> Access: (0644/-rw-r--r--) Uid: (1010/test) Gid:(0/root)
> Access: Wed Aug 13 16:10:21 2003
> Modify: Wed Aug 13 16:14:38 2003
> Change: Wed Aug 13 16:14:38 2003
>
> the size is not change - this is OK !!
> But Modify, and Change time is modified !!!
ctime is the inode change time; it has nothing to do with quotas. In
your example above, you wrote some data to a file, which resulted in
some of the inode's fields being updated, which resulted in the inode
change time being updated.
Sean Neakums <[email protected]> writes:
... a bunch of crap.
Feel free to shoot me in the head.