Re: Another 2.4 upgrade horror story

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

 



On Wed, Sep 26, 2012, at 01:25 AM, Wolfgang Breyha wrote:
> On 2012-09-25 19:05, Simon Beale wrote:
> > The only gotcha I experienced was I forgot that cyrus was configured to
> > hardlink mail, which of course was no longer the case after each mailbox
> > was migrated, so my disk usage exploded. (But easily fixed/restored once
> > identified).
> 
> What did you use for restoring the hardlinks? freedup as well?
> 
> I'm asking because I found a bug in freedup causing dataloss. I already
> sent a patch fixing it to the author of freedup last november, but he
> didn't release a new version yet.

I have a script for doing it - though only within a single user...

This is the core of the link logic:

    print "fixing up files for $guid ($srcname)\n";
    foreach my $file (@others) {
      my $tmpfile = $file . "tmp";
      print "link error $tmpfile\n" unless link($srcname, $tmpfile);
      chown($uid, $gid, $tmpfile);
      chmod(0600, $tmpfile);
      print "rename error $file\n" unless rename($tmpfile, $file);
    }

I suspect your fixup is similar :)

Bron.
-- 
  Bron Gondwana
  brong@xxxxxxxxxxx

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux