quota: Improve checking of quota file header
authorJan Kara <jack@suse.cz>
Mon, 21 Dec 2009 20:57:04 +0000 (21:57 +0100)
committerJan Kara <jack@suse.cz>
Wed, 23 Dec 2009 12:44:13 +0000 (13:44 +0100)
commit869835dfad3eb6f7d90c3255a24b084fea82f30d
tree738e438bcbab1330e8585ad6ee59dd8a66263a2c
parent765f8361902d015c864d5e62019b2f139452d7ef
quota: Improve checking of quota file header

When we are asked for vfsv0 quota format and the file is in vfsv1
format (or vice versa), refuse to use the quota file. Also return
with error when we don't like the header of quota file.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota_v2.c