Bug 772606

Summary: marker: 'marker_inode_loc_fill()' failure need not be an error case always
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: quotaAssignee: Junaid <junaid>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: mainlineCC: gluster-bugs, junaid, vagarwal, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-18 10:13:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2012-01-09 12:12:25 UTC
Description of problem:
in some of the fd based operations (like ftruncate(),fsetxattr() etc), 'marker_inode_loc_fill()' is called in maker.c, which may fail in case the entry is unlink()'d already, thus actually failing the FOP, which otherwise passes successfully.

Version-Release number of selected component (if applicable):
master

How reproducible:
have a .c code which does these operations in order, "fd=open(file), unlink(file), ftruncate(fd,0)", without quota enabled, it passes fine, where as with quota it fails.

Steps to Reproduce:
1.as explained above
  
Actual results: with quota ftruncate fails with ENOMEM

Expected results: with or without quota ftruncate() should pass through

Comment 1 Junaid 2012-04-18 10:13:20 UTC
Not reproducible now, closing as works for me. Let us reopen it if seen again.