]> Sergey Matveev's repositories - public-inbox.git/commit
xapcmd: avoid EXDEV when finalizing changes
authorEric Wong <e@80x24.org>
Thu, 23 May 2019 09:36:55 +0000 (09:36 +0000)
committerEric Wong <e@80x24.org>
Thu, 23 May 2019 17:43:50 +0000 (17:43 +0000)
commit53a2b98e6fbce92455734bbb7214b0534d5c0bff
tree88781c2198da8e94035ef71a9b6fd5169ad9a92b
parent5cb7f35deae1de5f24525e595d2008d6c27cae69
xapcmd: avoid EXDEV when finalizing changes

By creating temporary directories as deep as possible,
we can allow v2 repositories to have `xap$SCHEMA_VERSION'
(e.g. `xap15') reside on a separate FS.

We also check st_dev ahead-of-time to avoid doing work which
will fail with EXDEV.  Of course, another process may still
move/change things around.
lib/PublicInbox/Xapcmd.pm