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

Side by Side Diff: src/platform/update_engine/utils.cc

Issue 492008: AU: Try delta updates first, then full updates (Closed)
Patch Set: use mkstemp Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/update_engine/utils.h ('k') | src/platform/update_engine/utils_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "update_engine/utils.h" 5 #include "update_engine/utils.h"
6 #include <sys/mount.h> 6 #include <sys/mount.h>
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <dirent.h> 9 #include <dirent.h>
10 #include <errno.h> 10 #include <errno.h>
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return false; 250 return false;
251 } 251 }
252 return true; 252 return true;
253 } 253 }
254 254
255 bool UnmountFilesystem(const string& mountpoint) { 255 bool UnmountFilesystem(const string& mountpoint) {
256 TEST_AND_RETURN_FALSE_ERRNO(umount(mountpoint.c_str()) == 0); 256 TEST_AND_RETURN_FALSE_ERRNO(umount(mountpoint.c_str()) == 0);
257 return true; 257 return true;
258 } 258 }
259 259
260 const string kStatefulPartition = "/mnt/stateful_partition"; 260 const char* const kStatefulPartition = "/mnt/stateful_partition";
261 261
262 } // namespace utils 262 } // namespace utils
263 263
264 } // namespace chromeos_update_engine 264 } // namespace chromeos_update_engine
265 265
OLDNEW
« no previous file with comments | « src/platform/update_engine/utils.h ('k') | src/platform/update_engine/utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698