Re: Cyrus 2.4 converting quota - maybe coding bug

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

 



Am 01/08/2013 12:24 PM, schrieb Peter Allgeyer:
> Am 01/08/2013 11:12 AM, schrieb Antonio Conte:
>> permissions on file/directory ?
> drwxr-x--- 12 cyrus mail    4096 Jan  8 12:00 ./
> drwxr-xr-x  7 root  root      62 Jan  7 13:07 ../
> -rw-------  1 cyrus mail     144 Jan  8 10:00 annotations.db
> drwx------  2 cyrus mail     149 Jan  8 10:00 db/
> drwx------  2 cyrus mail      46 Jan  8 12:00 db.backup1/
> drwx------  2 cyrus mail      46 Jan  8 11:30 db.backup2/
> -rw-------  1 cyrus mail  565864 Jan  8 10:00 deliver.db
> drwx------ 28 cyrus mail    4096 Jan  7 14:38 lock/
> drwx------  2 cyrus mail       6 Feb  9  2010 log/
> -rw-------  1 cyrus mail 1955692 Jan  8 10:00 mailboxes.db
> -rw-r--r--  1 cyrus mail 1599521 Jan  6 22:39 mailboxes.txt
> drwx------  2 cyrus mail       6 Oct 22  2009 msg/
> drwx------  2 cyrus mail   16384 Jan  8 09:55 proc/
> drwx------ 28 cyrus mail    4096 Nov 10  2009 quota/
> -rw-------  1 cyrus mail     144 Dec 14  2011 quotas1.db
> -rw-------  1 cyrus mail     996 Dec 14  2011 quotas2.db
> -rw-------  1 cyrus mail   10244 Jan  8 10:00 quotas.db
>
> Should be ok. And why wants cyrus convert the quotas.db from skiplist
> back to quotalegacy?

* strace:
open("/var/imap/config/quotas.db.NEW", O_RDWR|O_CREAT, 0644) = 5
[...]
stat("/var/imap/config/quotas.db.NEW", {st_mode=S_IFREG|0600, 
st_size=10244, ...}) = 0
[...]
rename("/var/imap/config/quotas.db.NEW", "/var/imap/config/quotas.db") = 0
[...]

* looking into users quota:
open("/var/imap/config/quota/m/user.mmuster", O_RDWR) = 13
[...]
rename("/var/imap/config/quota/m/user.mmuster.NEW", 
"/var/imap/config/quota/m/user.mmuster") = 0

* and after that:
rename("/var/imap/config/quotas.db.NEW", "/var/imap/config/quotas.db") = 
-1 ENOENT (No such file or directory)

double rename attempt???

I think I've hit a coding bug.

best regards
-- 
Peter Allgeyer          Salzburg|Research Forschungsgesellschaft mbH
Dipl.-Inform. Univ.                     Jakob-Haringer-Strasse 5/III
phone +43.662.2288-264                       5020 Salzburg | Austria
fax   +43.662.2288-222                http://www.salzburgresearch.at
----
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