diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-04-18 08:30:54 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-18 07:42:23 -0700 |
commit | e89f2a1f5daf1513c533a47b90aec8f90702d09f (patch) | |
tree | 15baf7b9d31510de99f41cd8d2870577444739f2 /libglusterfs | |
parent | bb4c33f65f3e7eaeb03f3ac249d6eedd123c5ba6 (diff) |
features/marker-quota: reduce contributions to parents during unlink only if it is the last link.
- since we are not having different contributions for different (parent, name)
pairs, but only for different parents, links present in the same directory
will have only one contribution representing all of them. Hence parents will
not be updated for each link call and parents account for just file-size
instead of (numlinks * filesize). However this patch will cause issues
for links present accross directories, as only one of their contributions
is subtracted when all of them removed (Here all the links are accounted
in their parents, thereby total size accounted is [numlinks * filesize]).
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2689 (Quota: xattrs getting corrupted)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2689
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions