• Jan Kara's avatar
    quota: Don't store flags for v2 quota format · c119c5b9
    Jan Kara authored
    Currently, v2 quota format blindly stored flags from in-memory dqinfo on
    disk, although there are no flags supported. Since it is stupid to store
    flags which have no effect, just store 0 unconditionally and don't
    bother loading it from disk.
    
    Note that userspace could have stored some flags there via Q_SETINFO
    quotactl and then later read them (although flags have no effect) but
    I'm pretty sure noone does that (most definitely quota-tools don't and
    quota interface doesn't have too much other users).
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    c119c5b9
quota_v2.c 10.3 KB