Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Issue 5041001: Fix cross-device link errors by using shutil.move instead of os.rename (Closed)

Created:
10 years, 1 month ago by Dale Curtis
Modified:
9 years, 7 months ago
Reviewers:
kmixter1, ericli
CC:
chromium-os-reviews_chromium.org, truty+cc_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli, petkov+cc_chromium.org
Visibility:
Public.

Description

With the upcoming changes to make /home/autotest a mount pt for /mnt/stateful_partition/autotest, using os.rename in logging_CrashSender causes "OSError: [Errno 18] Invalid cross-device link". I've switched these calls to use shutil.move instead. Change-Id: I554b27e4c649867481e9aee76bd752ca90dcf582 BUG=chromium-os:8336 TEST=Ran test with new framework. Verified pass. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=497c2cb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M client/bin/site_crash_test.py View 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
DaleCurtis
10 years, 1 month ago (2010-11-15 20:58:45 UTC) #1
kmixter1
LGTM - though I think there may also be similar logic in KernelCrashServer.
10 years, 1 month ago (2010-11-16 21:28:13 UTC) #2
Dale Curtis
10 years, 1 month ago (2010-11-16 21:41:08 UTC) #3
Only found one other instance of os.rename -- in logging_UserCrash which is
unaffected. Don't see anything in KernelCrashServer which should be a problem.
Pushing.

On 2010/11/16 21:28:13, kmixter1 wrote:
> LGTM - though I think there may also be similar logic in KernelCrashServer.

Powered by Google App Engine
This is Rietveld 408576698