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

 
 

bug #19356: glusterfs-FUSE ftruncate not working

Submitter:  None
Submitted:  Tue 20 Mar 2007 01:51:33 PM UTC
   
 
Category:  GlusterFS Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Improper behaviour
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  *
Originator Email:  * -email is unavailable- Open/Closed:  Closed
Release:  Operating System:  GNU/Linux
Reproducibility:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by amarts (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-30 amarts StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code