FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > EXT3 Users

 
 
LinkBack Thread Tools
 
Old 02-24-2010, 07:49 AM
"Schrittesser, Florian"
 
Default Overwrite Mechanism

Hi
all,
*
i wanted to ask you
all about the exact overwrite mechanism used in ext3; is the information in the
datablocks overwritten or written to a new location and the information in the
referring inode is changed? Is it depending on the application used (and the
functions it calls) or independent from that?
*
Please don't
hesitate to go into further details and thanks for your
help!
*
cheers,
flo


This message has been scanned for malware by Websense. www.websense.com


_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
 
Old 02-24-2010, 08:37 PM
Andreas Dilger
 
Default Overwrite Mechanism

On 2010-02-24, at 01:49, Schrittesser, Florian wrote:
i wanted to ask you all about the exact overwrite mechanism used in
ext3; is the information in the datablocks overwritten or written to
a new location and the information in the referring inode is
changed? Is it depending on the application used (and the functions
it calls) or independent from that?


Please don't hesitate to go into further details and thanks for your
help!



It depends on what your application is doing. If it is opening the
file with open(O_TRUNC) then writing it, the new data is written to
wherever it is allocated. If O_TRUNC is not used, then the data is
written into the same blocks as were previously allocated to the file.


Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
 

Thread Tools




All times are GMT. The time now is 05:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org