OLD | NEW |
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 Loading... |
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 |
OLD | NEW |