Bug 1012216 - quota: zero byte file created
Summary: quota: zero byte file created
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: mainline
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On: 998893
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-26 03:19 UTC by Raghavendra G
Modified: 2018-12-05 16:23 UTC (History)
10 users (show)

Fixed In Version: glusterfs-3.5.0
Doc Type: Bug Fix
Doc Text:
Clone Of: 998893
Environment:
Last Closed: 2014-04-17 11:48:43 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Comment 1 Anand Avati 2013-09-26 06:27:23 UTC
REVIEW: http://review.gluster.org/6004 (storage/posix: tweak ia_blocks only if ia_size is non-zero) posted (#1) for review on master by Raghavendra G (rgowdapp)

Comment 2 Anand Avati 2013-10-04 08:18:05 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#1) for review on master by Raghavendra G (rgowdapp)

Comment 3 Anand Avati 2013-10-09 09:30:49 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#2) for review on master by Raghavendra G (rgowdapp)

Comment 4 Anand Avati 2013-10-10 16:08:06 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#3) for review on master by Raghavendra G (rgowdapp)

Comment 5 Anand Avati 2013-10-11 09:47:09 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#4) for review on master by Raghavendra G (rgowdapp)

Comment 6 Anand Avati 2013-10-11 12:17:22 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#5) for review on master by Raghavendra G (rgowdapp)

Comment 7 Anand Avati 2013-10-12 01:43:01 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#6) for review on master by Raghavendra G (rgowdapp)

Comment 8 Anand Avati 2013-10-16 06:05:17 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#7) for review on master by Raghavendra G (rgowdapp)

Comment 9 Anand Avati 2013-10-24 12:30:06 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#8) for review on master by Raghavendra G (rgowdapp)

Comment 10 Anand Avati 2013-10-28 05:56:32 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#9) for review on master by Raghavendra G (rgowdapp)

Comment 11 Anand Avati 2013-10-28 10:21:16 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#10) for review on master by Raghavendra G (rgowdapp)

Comment 12 Anand Avati 2013-10-28 13:49:25 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#11) for review on master by Krishnan Parthasarathi (kparthas)

Comment 13 Anand Avati 2013-10-28 16:38:01 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#12) for review on master by Krishnan Parthasarathi (kparthas)

Comment 14 Anand Avati 2013-10-31 06:02:35 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#13) for review on master by Raghavendra G (rgowdapp)

Comment 15 Anand Avati 2013-11-04 11:12:50 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write  cannot fit into available space.) posted (#14) for review on master by Raghavendra G (rgowdapp)

Comment 16 Anand Avati 2013-11-11 13:57:51 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#15) for review on master by Raghavendra G (rgowdapp)

Comment 17 Anand Avati 2013-11-11 16:31:58 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#16) for review on master by Raghavendra G (rgowdapp)

Comment 18 Anand Avati 2013-11-11 18:07:13 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#17) for review on master by Raghavendra G (rgowdapp)

Comment 19 Anand Avati 2013-11-12 15:12:25 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#18) for review on master by Raghavendra G (rgowdapp)

Comment 20 Anand Avati 2013-11-13 11:17:03 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#19) for review on master by Raghavendra G (rgowdapp)

Comment 21 Anand Avati 2013-11-14 12:03:31 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#20) for review on master by Raghavendra G (rgowdapp)

Comment 22 Anand Avati 2013-11-14 12:44:14 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#21) for review on master by Raghavendra G (rgowdapp)

Comment 23 Anand Avati 2013-11-26 06:05:25 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#38) for review on master by Raghavendra G (rgowdapp)

Comment 24 Anand Avati 2013-11-26 10:45:11 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#39) for review on master by Raghavendra G (rgowdapp)

Comment 25 Anand Avati 2013-11-26 11:40:24 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#40) for review on master by Raghavendra G (rgowdapp)

Comment 26 Anand Avati 2013-11-26 12:28:24 UTC
REVIEW: http://review.gluster.org/6035 (features/quota: make writes short when the entire write cannot fit into available space.) posted (#41) for review on master by Raghavendra G (rgowdapp)

Comment 27 Anand Avati 2013-11-26 18:26:36 UTC
COMMIT: http://review.gluster.org/6035 committed in master by Anand Avati (avati) 
------
commit 3f1ebe0298450cb8770a8753fe3a8a2519f78911
Author: Raghavendra G <rgowdapp>
Date:   Fri Oct 4 13:37:38 2013 +0530

    features/quota: make writes short when the entire write cannot fit into available space.
    
    This patch aims to prevent creation of infinite zero byte sized files
    due to amount of storage available before exceeding quota limit
    being less than write sizes. Imagine x bytes of storage is available
    before we exceed quota limit and quota enforcer is receiving writes of
    size y and (y > x). In this scenario, if we run a shell script like:
    
       # for i in $(seq 1 10); do dd if=/dev/zero of=$i bs=y count=1; done
    
    Then, we would end up with 10 zero byte sized files, because we allow
    only complete writes and all writes will fail because of lack of space.
    However, creates succeed since a create itself will consume zero
    bytes. In this pattern of creates and writes, size of volume would
    never grow and x bytes of space will always be available and we can
    end up with an infinite number of zero byte sized files.
    
    Change-Id: Ice148d6a2207883e41759f7b0be73abaa3198b41
    BUG: 1012216
    Signed-off-by: Raghavendra G <rgowdapp>
    Reviewed-on: http://review.gluster.org/6035
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Anand Avati <avati>

Comment 28 Niels de Vos 2014-04-17 11:48:43 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.5.0, please reopen this bug report.

glusterfs-3.5.0 has been announced on the Gluster Developers mailinglist [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/6137
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


Note You need to log in before you can comment on or make changes to this bug.