bugGluster - Bugs: bug #22484, [posix-locks] when SETLK failed,...

 
 

bug #22484: [posix-locks] when SETLK failed, sometimes should return EAGAIN instead of EINVAL

Submitted by:  LI Daobing <lidaobing>
Submitted on:  Wed 05 Mar 2008 02:37:18 AM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: User Interface Bug
Status: FixedPrivacy: Public
Assigned to: Vikas Gorur <vikasgp>Originator Name: 
Open/Closed: ClosedRelease: 
Operating System: NoneReproducibility: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 12 Mar 2008 04:29:13 PM UTC, comment #2:

fixed in patch-695

Amar Tumballi <amarts>
Project Member
Wed 05 Mar 2008 10:20:45 AM UTC, comment #1:

Thanks for reporting. This has been fixed in glusterfs--mainline--2.5--patch-695

Vikas Gorur <vikasgp>
Project MemberIn charge of this item.
Wed 05 Mar 2008 02:37:18 AM UTC, original submission:

Hello,

a testcase in attchment.

$ ./foo ~/.bashrc
fcntl-2: Resource temporarily unavailable

$ ./foo /home/gluster_data/mount/2
fcntl-2: Invalid argument

when this program run on a file in local disk. it return EAGAIN("Resource temporarily unavailable") as expected, and when it runs on a file in glusterfs, it return EINVAL("Invalid argument").

I think this is bug, EAGAIN is much different from EINVAL, please fix it, thanks.

LI Daobing <lidaobing>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #15181:  foo.c added by lidaobing (604B - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by amarts (Posted a comment)
  • -unavailable- added by vikasgp (Posted a comment)
  • -unavailable- added by lidaobing (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Mar 2008 04:29:13 PM UTCamartsStatusNone=>Fixed
      Assigned toNone=>vikasgp
      Open/ClosedOpen=>Closed
    Wed 05 Mar 2008 02:37:18 AM UTClidaobingAttached File-=>Added foo.c, #15181

    Back to the top


    Powered by Savane 3.1-cleanup1