| 374 | |
| 375 | |
| 376 | Option<int> MountInfoTable::Entry::shared() const |
| 377 | { |
| 378 | foreach (const string& token, strings::tokenize(optionalFields, " ")) { |
| 379 | if (strings::startsWith(token, "shared:")) { |
| 380 | Try<int> id = numify<int>( |
| 381 | strings::remove(token, "shared:", strings::PREFIX)); |
| 382 | |
| 383 | CHECK_SOME(id); |
| 384 | return id.get(); |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | return None(); |
| 389 | } |
| 390 | |
| 391 | |
| 392 | Option<int> MountInfoTable::Entry::master() const |