MCPcopy Create free account
hub / github.com/apache/mesos / hasOption

Method hasOption

src/linux/fs.cpp:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407
408bool MountTable::Entry::hasOption(const string& option) const
409{
410 struct mntent mntent;
411 mntent.mnt_fsname = const_cast<char*>(fsname.c_str());
412 mntent.mnt_dir = const_cast<char*>(dir.c_str());
413 mntent.mnt_type = const_cast<char*>(type.c_str());
414 mntent.mnt_opts = const_cast<char*>(opts.c_str());
415 mntent.mnt_freq = freq;
416 mntent.mnt_passno = passno;
417 return ::hasmntopt(&mntent, option.c_str()) != nullptr;
418}
419
420
421Try<MountTable> MountTable::read(const string& path)

Callers 4

TEST_FFunction · 0.80
foreachFunction · 0.80
lFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64