Re: Serious problem doing a perl operation

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

 



Hi Einar!

On 16.09.11 12:44, Einar Gautun wrote:
> I’ve found a serious problem doing this command:
> perl -i -pe 's/something/somethingelse/' filename

perl opens the same file twice:

strace perl -i -pe 's/something/somethingelse/' filename
...
open("filename", O_RDONLY|O_LARGEFILE)  = 3
open("filename", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = 4
...
close(4)                                = 0
close(3)                                = 0

Something which currently makes troubles on top of GlusterFS. I had
similar problems with "bzr" aka Bazaar.

Beat

-- 
     \|/                           Beat Rubischon <beat@xxxxxxx>
   ( 0-0 )                             http://www.0x1b.ch/~beat/
oOO--(_)--OOo---------------------------------------------------
Meine Erlebnisse, Gedanken und Traeume: http://www.0x1b.ch/blog/



[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