bugGluster - Bugs: bug #19356, glusterfs-FUSE ftruncate not...

 
 

bug #19356: glusterfs-FUSE ftruncate not working

Submitted by:  None
Submitted on:  Tue 20 Mar 2007 01:51:33 PM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Originator Email: -unavailable-Open/Closed: Closed
Release: Operating System: GNU/Linux
Reproducibility: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 30 Jun 2007 01:17:12 AM UTC, comment #1:

This is fixed by our inode based changes. (check 1.3.0-pre5+ releases, or glusterfs--mainline--2.5 branch)

Amar Tumballi <amarts>
Project Member
Tue 20 Mar 2007 01:51:33 PM UTC, original submission:

We have a process that writes sequentially to a file until the file overflows the 1 GB limit that we have set. At that point, the process does an ftruncate() back to the end of the last entry, closes the file and opens a new one.

The ftruncate() call is not truncating the file. We end up with a partial record at the end of each file.

This works with other local filesystems and Lustre - these do not use FUSE, of course.

System specs:
Linux 2.6.20-gentoo #3 SMP Tue Mar 6 13:19:08 CET 2007 x86_64 Dual-Core AMD Opteron(tm) Processor 2212 HE AuthenticAMD GNU/Linux

GlusterFS v1.3.0-pre2.2 patched up to 76

FUSE info:
6402 Feb 28 22:32 fuse-bridge.c
62948 Feb 25 17:00 fuse-internals.c
2440 Jan 18 04:12 fuse-internals.h
9308 Mar 1 01:07 glusterfs.c
1410 Feb 28 22:32 glusterfs.h

Using:
Client:
cluster/unify
writebehind
ALU

Servers:
4 bricks (separate servers)
iothreads
posix

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 30 Jun 2007 01:17:12 AM UTCamartsStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1