Re: Data writting over the quota chage inote time

From: Jan Kara
Date: Thu Oct 09 2003 - 11:38:21 EST


Hi,

the problem actually isn't in quota but in VFS layer (you'd get same
result if you just run out of empty space on disk). I actually also
looked into fixing this but it showed up to require rewriting of code on
a lot of places and so I postponed the problem because I find the
problem more or less cosmetic... Or do you have some application failing
on this?

Honza


> 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 www.kernel.org
>
> Thanx
> youza
--
Jan Kara <jack@xxxxxxx>
SuSE CR Labs
-
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/