| 264 | |
| 265 | #ifdef __linux__ |
| 266 | static Try<Nothing> mountContainerFilesystem(const ContainerMountInfo& mount) |
| 267 | { |
| 268 | return fs::mount( |
| 269 | mount.has_source() ? Option<string>(mount.source()) : None(), |
| 270 | mount.target(), |
| 271 | mount.has_type() ? Option<string>(mount.type()) : None(), |
| 272 | mount.has_flags() ? mount.flags() : 0, |
| 273 | mount.has_options() ? Option<string>(mount.options()) : None()); |
| 274 | } |
| 275 | #endif // __linux__ |
| 276 | |
| 277 |