[dovecot/core] f1243d: lib: Add file_lock_get_path()

GitHub noreply at github.com
Wed Jun 28 22:30:09 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: f1243d7759a3dddc1c3eaf7eda8a153c8ef0112b
      https://github.com/dovecot/core/commit/f1243d7759a3dddc1c3eaf7eda8a153c8ef0112b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/file-lock.c
    M src/lib/file-lock.h

  Log Message:
  -----------
  lib: Add file_lock_get_path()

This allows getting the file path from the lock without having to preserve
it separately.


  Commit: d8d93ecd89efa7c84a3a21264a550449619f715b
      https://github.com/dovecot/core/commit/d8d93ecd89efa7c84a3a21264a550449619f715b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/file-lock.c
    M src/lib/file-lock.h

  Log Message:
  -----------
  lib: Add file_lock_set_path()


  Commit: 2605b390b4f622faf86d7c27e450b62f3a16b2dc
      https://github.com/dovecot/core/commit/2605b390b4f622faf86d7c27e450b62f3a16b2dc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/file-create-locked.c

  Log Message:
  -----------
  lib: file_create_locked() - update lock path after link()


  Commit: 68332e3a49dea15013aa8f4daa16b5e07eb3d543
      https://github.com/dovecot/core/commit/68332e3a49dea15013aa8f4daa16b5e07eb3d543
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/file-lock.c
    M src/lib/file-lock.h

  Log Message:
  -----------
  lib: Add file_lock_set_unlink_on_free()


  Commit: 65f9a90ef5ed4c86fb9e44f22e472509126ae9f5
      https://github.com/dovecot/core/commit/65f9a90ef5ed4c86fb9e44f22e472509126ae9f5
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/file-lock.c
    M src/lib/file-lock.h

  Log Message:
  -----------
  lib: Add file_lock_set_close_on_free()


  Commit: 9a18972285665fc8ce3709f444f0f1e72e8b71a7
      https://github.com/dovecot/core/commit/9a18972285665fc8ce3709f444f0f1e72e8b71a7
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/Makefile.am
    A src/lib/test-file-create-locked.c
    M src/lib/test-lib.inc

  Log Message:
  -----------
  lib: Add unit test for file_create_locked()


  Commit: d6e3deea85740b3af60e9f5bab32e98beba12d93
      https://github.com/dovecot/core/commit/d6e3deea85740b3af60e9f5bab32e98beba12d93
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib/file-create-locked.c
    M src/lib/file-create-locked.h
    M src/lib/test-file-create-locked.c

  Log Message:
  -----------
  lib: file_create_locked() - Add settings to mkdir() missing parent directories


  Commit: 99e9dc500f54366263d1de804d933030df0385a2
      https://github.com/dovecot/core/commit/99e9dc500f54366263d1de804d933030df0385a2
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c

  Log Message:
  -----------
  lib-storage: Fix error logging for failing to create .vsize.lock


  Commit: 181e90a1e5bedeb8d5584b488d4b0eb64cab7f8e
      https://github.com/dovecot/core/commit/181e90a1e5bedeb8d5584b488d4b0eb64cab7f8e
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c

  Log Message:
  -----------
  lib-storage: Use file_lock_set_*_on_free() for .vsize.lock

This avoids storing the lock_path and lock_fd separately.


  Commit: 2864ce8150abac6890408c77aad10dd522633ff4
      https://github.com/dovecot/core/commit/2864ce8150abac6890408c77aad10dd522633ff4
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c

  Log Message:
  -----------
  lib-storage: Move .vsize.lock creation to its own function


  Commit: bd94a2a86e27f4809d087a8269bc4ccdd5f4ede3
      https://github.com/dovecot/core/commit/bd94a2a86e27f4809d087a8269bc4ccdd5f4ede3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c
    M src/lib-storage/mail-storage-private.h
    M src/lib-storage/mail-storage.c

  Log Message:
  -----------
  lib-storage: Move .vsize.lock creation to a generic mailbox_lock_file_create()


  Commit: 34f53904b507eaa7773149a2320cea4ef7521102
      https://github.com/dovecot/core/commit/34f53904b507eaa7773149a2320cea4ef7521102
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/mail-autoexpunge.c

  Log Message:
  -----------
  lib-storage: Use file_lock_set_*_on_free() for dovecot.autoexpunge.lock


  Commit: 67c05b67130df470e2bf2619b2cef39fc972c69d
      https://github.com/dovecot/core/commit/67c05b67130df470e2bf2619b2cef39fc972c69d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/mail-autoexpunge.c

  Log Message:
  -----------
  lib-storage: mailbox_autoexpunge_lock() - small cleanup

No functional changes - just reorganizing code and adding comments.


  Commit: 762d6549bc2fdc099c7e9ec38760274d4302b56d
      https://github.com/dovecot/core/commit/762d6549bc2fdc099c7e9ec38760274d4302b56d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/mail-autoexpunge.c

  Log Message:
  -----------
  lib-storage: mailbox_autoexpunge_lock() - Don't hide ENOENT error

It means that the user's home directory doesn't exist, which is pretty
unexpected. Home directory is supposed to be created when the storage is
initialized.


  Commit: 55cec51dba1352482e93db30d7ced6bc4fe15f3a
      https://github.com/dovecot/core/commit/55cec51dba1352482e93db30d7ced6bc4fe15f3a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/mail-autoexpunge.c
    M src/lib-storage/mail-user.c
    M src/lib-storage/mail-user.h

  Log Message:
  -----------
  lib-storage: Move autoexpunge lock creation to a generic mail_user_lock_file_create()


  Commit: fd8b93ca5cbeba64fe6fa5dc98a3e580fb046791
      https://github.com/dovecot/core/commit/fd8b93ca5cbeba64fe6fa5dc98a3e580fb046791
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M src/lib-storage/mail-storage.c
    M src/lib-storage/mail-user.c
    M src/lib-storage/mailbox-list.c
    M src/lib-storage/mailbox-list.h

  Log Message:
  -----------
  lib-storage: Add VOLATILEDIR setting to mail_location

This is useful for creating temporary locks that could exist in tmpfs.
Currently this is used for .vsize.lock and dovecot.autoexpunge.lock.


Compare: https://github.com/dovecot/core/compare/27d0b2cd12e4...fd8b93ca5cbe


More information about the dovecot-cvs mailing list