Re: trusted.glusterfs.version xattr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I still need time to understand it. But my doubt is that, vi moves the old
file to 'filename~' and then create a new file 'filename'. If this is the
case it will have version 2, as its a new file.
But still, I can think of all disasters it can cause. Let me check with
Avati/Krishna about these.

Regards,
Amar

On Tue, May 6, 2008 at 12:07 PM, <gordan@xxxxxxxxxx> wrote:

> Hi,
>
> Maybe I'm missing something important here, but something isn't making
> sense to me.
>
> When I create a file on the glusterfs mount, it gets version of "2". All
> well and good. If I >> a line to it, it's version ticks up. So far so good.
>
> If I vi the file, add a line and save it, it's version resets back to "2"!
>
> What exactly is going on here? I'm sure that there is a perfectly good
> explanation here (i.e. that vi removes the file and re-creates it anew), but
> I just wanted to make sure this is a sane condition. Also, would this not
> mean that following a disconnection, all vi-ed files would get clobbered
> when the server reconnects and the file gets read?! This strikes me as
> _INCREDIBLY_ dangerous. Too dangerous for any use, in fact.
>
> Can somebody please tell me that I'm wrong here? Because I really hope
> that I am.
>
> Gordan
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel@xxxxxxxxxx
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>



-- 
Amar Tumballi
Gluster/GlusterFS Hacker
[bulde on #gluster/irc.gnu.org]
http://www.zresearch.com - Commoditizing Super Storage!


[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux