Mike Frysinger | 38ae98d | 2012-04-11 12:03:44 -0400 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "cros-disks/platform.h" |
| 6 | |
Ben Chan | 35cd7ae | 2019-05-02 22:42:37 -0700 | [diff] [blame] | 7 | #include <errno.h> |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 8 | #include <sys/mount.h> |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 9 | #include <sys/stat.h> |
| 10 | #include <unistd.h> |
| 11 | |
Ben Chan | 5e3ca67 | 2014-08-25 15:53:58 -0700 | [diff] [blame] | 12 | #include <memory> |
| 13 | #include <vector> |
| 14 | |
Ben Chan | cd8fda4 | 2014-09-05 08:21:06 -0700 | [diff] [blame] | 15 | #include <base/files/file_util.h> |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 16 | #include <base/logging.h> |
Heng-Ruey Hsu | 5759506 | 2016-05-24 16:48:58 +0800 | [diff] [blame] | 17 | #include <base/memory/free_deleter.h> |
Mike Frysinger | 38ae98d | 2012-04-11 12:03:44 -0400 | [diff] [blame] | 18 | #include <base/stl_util.h> |
Ben Chan | 97e20d4 | 2014-02-05 18:38:07 -0800 | [diff] [blame] | 19 | #include <base/strings/string_util.h> |
| 20 | #include <base/strings/stringprintf.h> |
Ben Chan | 950db3d | 2018-10-31 13:55:02 -0700 | [diff] [blame] | 21 | #include <brillo/userdb_utils.h> |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 22 | |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 23 | #include "cros-disks/quote.h" |
| 24 | |
Ben Chan | 460439f | 2011-09-13 09:16:28 -0700 | [diff] [blame] | 25 | namespace cros_disks { |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 26 | |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 27 | Platform::Platform() |
Ben Chan | de0e3f6 | 2017-09-26 06:28:39 -0700 | [diff] [blame] | 28 | : mount_group_id_(0), mount_user_id_(0), mount_user_("root") {} |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 29 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 30 | bool Platform::GetRealPath(const std::string& path, |
| 31 | std::string* real_path) const { |
Ben Chan | adc5d00 | 2014-03-12 15:02:26 -0700 | [diff] [blame] | 32 | CHECK(real_path) << "Invalid real_path argument"; |
| 33 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 34 | std::unique_ptr<char, base::FreeDeleter> result( |
| 35 | realpath(path.c_str(), nullptr)); |
Ben Chan | adc5d00 | 2014-03-12 15:02:26 -0700 | [diff] [blame] | 36 | if (!result) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 37 | PLOG(ERROR) << "Cannot get real path of " << quote(path); |
Ben Chan | adc5d00 | 2014-03-12 15:02:26 -0700 | [diff] [blame] | 38 | return false; |
| 39 | } |
| 40 | |
| 41 | *real_path = result.get(); |
| 42 | return true; |
| 43 | } |
| 44 | |
Sergei Datsenko | 0f014d2 | 2018-04-04 16:37:22 +1000 | [diff] [blame] | 45 | bool Platform::PathExists(const std::string& path) const { |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 46 | return base::PathExists(base::FilePath(path)); |
Sergei Datsenko | 0f014d2 | 2018-04-04 16:37:22 +1000 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | bool Platform::DirectoryExists(const std::string& path) const { |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 50 | return base::DirectoryExists(base::FilePath(path)); |
Sergei Datsenko | 0f014d2 | 2018-04-04 16:37:22 +1000 | [diff] [blame] | 51 | } |
| 52 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 53 | bool Platform::CreateDirectory(const std::string& path) const { |
| 54 | if (!base::CreateDirectory(base::FilePath(path))) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 55 | LOG(ERROR) << "Cannot create directory " << quote(path); |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 56 | return false; |
| 57 | } |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 58 | LOG(INFO) << "Created directory " << quote(path); |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 59 | return true; |
| 60 | } |
| 61 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 62 | bool Platform::CreateOrReuseEmptyDirectory(const std::string& path) const { |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 63 | CHECK(!path.empty()) << "Invalid path argument"; |
| 64 | |
| 65 | // Reuse the target path if it already exists and is empty. |
| 66 | // rmdir handles the cases when the target path exists but |
| 67 | // is not empty, is already mounted or is used by some process. |
| 68 | rmdir(path.c_str()); |
| 69 | if (mkdir(path.c_str(), S_IRWXU) != 0) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 70 | PLOG(ERROR) << "Cannot create directory " << quote(path); |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 71 | return false; |
| 72 | } |
| 73 | return true; |
| 74 | } |
| 75 | |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 76 | bool Platform::CreateOrReuseEmptyDirectoryWithFallback( |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 77 | std::string* path, |
Ben Chan | de0e3f6 | 2017-09-26 06:28:39 -0700 | [diff] [blame] | 78 | unsigned max_suffix_to_retry, |
Ben Chan | f869288 | 2011-08-21 10:15:30 -0700 | [diff] [blame] | 79 | const std::set<std::string>& reserved_paths) const { |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 80 | CHECK(path && !path->empty()) << "Invalid path argument"; |
| 81 | |
Qijiang Fan | 5243904 | 2020-06-17 15:34:38 +0900 | [diff] [blame^] | 82 | if (!base::Contains(reserved_paths, *path) && |
Eric Caruso | e8f5ba1 | 2018-01-10 14:32:03 -0800 | [diff] [blame] | 83 | CreateOrReuseEmptyDirectory(*path)) |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 84 | return true; |
| 85 | |
| 86 | for (unsigned suffix = 1; suffix <= max_suffix_to_retry; ++suffix) { |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 87 | std::string fallback_path = GetDirectoryFallbackName(*path, suffix); |
Qijiang Fan | 5243904 | 2020-06-17 15:34:38 +0900 | [diff] [blame^] | 88 | if (!base::Contains(reserved_paths, fallback_path) && |
Ben Chan | f869288 | 2011-08-21 10:15:30 -0700 | [diff] [blame] | 89 | CreateOrReuseEmptyDirectory(fallback_path)) { |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 90 | *path = fallback_path; |
| 91 | return true; |
| 92 | } |
| 93 | } |
| 94 | return false; |
| 95 | } |
| 96 | |
Sergei Datsenko | bcd8e46 | 2018-04-20 15:44:56 +1000 | [diff] [blame] | 97 | bool Platform::CreateTemporaryDirInDir(const std::string& dir, |
| 98 | const std::string& prefix, |
| 99 | std::string* path) const { |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 100 | base::FilePath dest; |
| 101 | bool result = |
| 102 | base::CreateTemporaryDirInDir(base::FilePath(dir), prefix, &dest); |
Sergei Datsenko | bcd8e46 | 2018-04-20 15:44:56 +1000 | [diff] [blame] | 103 | if (result && path) |
| 104 | *path = dest.value(); |
| 105 | return result; |
| 106 | } |
| 107 | |
Sergei Datsenko | ad2cb6a | 2018-05-15 17:34:26 +1000 | [diff] [blame] | 108 | int Platform::WriteFile(const std::string& file, |
| 109 | const char* data, |
| 110 | int size) const { |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 111 | return base::WriteFile(base::FilePath(file), data, size); |
Sergei Datsenko | ad2cb6a | 2018-05-15 17:34:26 +1000 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | int Platform::ReadFile(const std::string& file, char* data, int size) const { |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 115 | return base::ReadFile(base::FilePath(file), data, size); |
Sergei Datsenko | bcd8e46 | 2018-04-20 15:44:56 +1000 | [diff] [blame] | 116 | } |
| 117 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 118 | std::string Platform::GetDirectoryFallbackName(const std::string& path, |
| 119 | unsigned suffix) const { |
Alex Vakulenko | e50371c | 2016-01-20 16:06:19 -0800 | [diff] [blame] | 120 | if (!path.empty() && base::IsAsciiDigit(path[path.size() - 1])) |
Ben Chan | ec4eaab | 2012-02-05 23:26:58 -0800 | [diff] [blame] | 121 | return base::StringPrintf("%s (%u)", path.c_str(), suffix); |
| 122 | |
| 123 | return base::StringPrintf("%s %u", path.c_str(), suffix); |
| 124 | } |
| 125 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 126 | bool Platform::GetGroupId(const std::string& group_name, |
| 127 | gid_t* group_id) const { |
Ben Chan | 950db3d | 2018-10-31 13:55:02 -0700 | [diff] [blame] | 128 | return brillo::userdb::GetGroupInfo(group_name, group_id); |
Ben Chan | 1d5a8e7 | 2011-08-01 15:21:39 -0700 | [diff] [blame] | 129 | } |
| 130 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 131 | bool Platform::GetUserAndGroupId(const std::string& user_name, |
Ben Chan | de0e3f6 | 2017-09-26 06:28:39 -0700 | [diff] [blame] | 132 | uid_t* user_id, |
| 133 | gid_t* group_id) const { |
Ben Chan | 950db3d | 2018-10-31 13:55:02 -0700 | [diff] [blame] | 134 | return brillo::userdb::GetUserInfo(user_name, user_id, group_id); |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 135 | } |
| 136 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 137 | bool Platform::GetOwnership(const std::string& path, |
Ben Chan | de0e3f6 | 2017-09-26 06:28:39 -0700 | [diff] [blame] | 138 | uid_t* user_id, |
| 139 | gid_t* group_id) const { |
Ben Chan | b1ac5a8 | 2011-08-02 17:53:55 -0700 | [diff] [blame] | 140 | struct stat path_status; |
| 141 | if (stat(path.c_str(), &path_status) != 0) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 142 | PLOG(ERROR) << "Cannot get ownership info for " << quote(path); |
Ben Chan | b1ac5a8 | 2011-08-02 17:53:55 -0700 | [diff] [blame] | 143 | return false; |
| 144 | } |
| 145 | |
| 146 | if (user_id) |
| 147 | *user_id = path_status.st_uid; |
| 148 | |
| 149 | if (group_id) |
| 150 | *group_id = path_status.st_gid; |
| 151 | |
| 152 | return true; |
| 153 | } |
| 154 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 155 | bool Platform::GetPermissions(const std::string& path, mode_t* mode) const { |
Ben Chan | b1ac5a8 | 2011-08-02 17:53:55 -0700 | [diff] [blame] | 156 | CHECK(mode) << "Invalid mode argument"; |
| 157 | |
| 158 | struct stat path_status; |
| 159 | if (stat(path.c_str(), &path_status) != 0) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 160 | PLOG(ERROR) << "Cannot get the permissions of " << quote(path); |
Ben Chan | b1ac5a8 | 2011-08-02 17:53:55 -0700 | [diff] [blame] | 161 | return false; |
| 162 | } |
| 163 | *mode = path_status.st_mode; |
| 164 | return true; |
| 165 | } |
| 166 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 167 | bool Platform::SetMountUser(const std::string& user_name) { |
Ben Chan | 98f8ae0 | 2011-10-04 16:34:34 -0700 | [diff] [blame] | 168 | if (GetUserAndGroupId(user_name, &mount_user_id_, &mount_group_id_)) { |
| 169 | mount_user_ = user_name; |
| 170 | return true; |
| 171 | } |
| 172 | return false; |
Ben Chan | 93dec93 | 2011-08-03 12:57:49 -0700 | [diff] [blame] | 173 | } |
| 174 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 175 | bool Platform::RemoveEmptyDirectory(const std::string& path) const { |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 176 | if (rmdir(path.c_str()) != 0) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 177 | PLOG(ERROR) << "Cannot remove directory " << quote(path); |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 178 | return false; |
| 179 | } |
| 180 | return true; |
| 181 | } |
| 182 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 183 | bool Platform::SetOwnership(const std::string& path, |
Ben Chan | de0e3f6 | 2017-09-26 06:28:39 -0700 | [diff] [blame] | 184 | uid_t user_id, |
| 185 | gid_t group_id) const { |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 186 | if (chown(path.c_str(), user_id, group_id)) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 187 | PLOG(ERROR) << "Cannot set ownership of " << quote(path) << " to uid " |
| 188 | << user_id << " and gid " << group_id; |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 189 | return false; |
| 190 | } |
| 191 | return true; |
| 192 | } |
| 193 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 194 | bool Platform::SetPermissions(const std::string& path, mode_t mode) const { |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 195 | if (chmod(path.c_str(), mode)) { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 196 | PLOG(ERROR) << "Cannot set permissions of " << quote(path) << " to " |
Ben Chan | de0e3f6 | 2017-09-26 06:28:39 -0700 | [diff] [blame] | 197 | << base::StringPrintf("%04o", mode); |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 198 | return false; |
| 199 | } |
| 200 | return true; |
| 201 | } |
| 202 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 203 | MountErrorType Platform::Unmount(const std::string& path, int flags) const { |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 204 | error_t error = 0; |
Anand K Mistry | 68418e6 | 2018-08-22 11:37:04 +1000 | [diff] [blame] | 205 | if (umount2(path.c_str(), flags) != 0) { |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 206 | error = errno; |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 207 | PLOG(ERROR) << "Cannot unmount " << quote(path) << " with flags " << flags; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 208 | } else { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 209 | LOG(INFO) << "Unmounted " << quote(path) << " with flags " << flags; |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 210 | } |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 211 | switch (error) { |
| 212 | case 0: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 213 | return MOUNT_ERROR_NONE; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 214 | case ENOENT: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 215 | return MOUNT_ERROR_PATH_NOT_MOUNTED; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 216 | case EPERM: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 217 | return MOUNT_ERROR_INSUFFICIENT_PERMISSIONS; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 218 | case EBUSY: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 219 | return MOUNT_ERROR_PATH_ALREADY_MOUNTED; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 220 | default: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 221 | return MOUNT_ERROR_UNKNOWN; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 222 | } |
Ben Chan | 8dcede8 | 2011-07-25 20:56:13 -0700 | [diff] [blame] | 223 | } |
| 224 | |
Ben Chan | 213c6d9 | 2019-04-10 16:21:52 -0700 | [diff] [blame] | 225 | MountErrorType Platform::Mount(const std::string& source_path, |
| 226 | const std::string& target_path, |
| 227 | const std::string& filesystem_type, |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 228 | uint64_t options, |
| 229 | const std::string& data) const { |
| 230 | error_t error = 0; |
Sam McNally | c56ae31 | 2018-05-22 13:14:27 +1000 | [diff] [blame] | 231 | if (mount(source_path.c_str(), target_path.c_str(), filesystem_type.c_str(), |
| 232 | options, data.c_str()) != 0) { |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 233 | error = errno; |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 234 | PLOG(ERROR) << "Cannot mount " << quote(source_path) << " to " |
| 235 | << quote(target_path) << " as filesystem " |
| 236 | << quote(filesystem_type) << " with options " << options << " " |
| 237 | << quote(data); |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 238 | } else { |
François Degros | 8b4e31e | 2019-07-29 11:39:19 +1000 | [diff] [blame] | 239 | LOG(INFO) << "Mounted " << quote(source_path) << " to " |
| 240 | << quote(target_path) << " as filesystem " |
| 241 | << quote(filesystem_type) << " with options " << options << " " |
| 242 | << quote(data); |
Sam McNally | c56ae31 | 2018-05-22 13:14:27 +1000 | [diff] [blame] | 243 | } |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 244 | switch (error) { |
| 245 | case 0: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 246 | return MOUNT_ERROR_NONE; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 247 | case ENODEV: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 248 | return MOUNT_ERROR_UNSUPPORTED_FILESYSTEM; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 249 | case ENOENT: |
| 250 | case ENOTBLK: |
| 251 | case ENOTDIR: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 252 | return MOUNT_ERROR_INVALID_PATH; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 253 | case EPERM: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 254 | return MOUNT_ERROR_INSUFFICIENT_PERMISSIONS; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 255 | default: |
François Degros | 3a79690 | 2019-07-12 14:49:58 +1000 | [diff] [blame] | 256 | return MOUNT_ERROR_UNKNOWN; |
Sergei Datsenko | b362e4a | 2019-04-03 17:23:24 +1100 | [diff] [blame] | 257 | } |
Sam McNally | c56ae31 | 2018-05-22 13:14:27 +1000 | [diff] [blame] | 258 | } |
| 259 | |
Ben Chan | 29be915 | 2011-07-25 14:39:48 -0700 | [diff] [blame] | 260 | } // namespace cros_disks |