-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mounts table for linux #316
Conversation
Nice, this is looking good. What do you think of the column names? table_name("mounts")
schema([
Column(name="fsname", type="std::string"),
Column(name="fsname_real", type="std::string"),
Column(name="dir", type="std::string"),
Column(name="type", type="std::string"),
Column(name="opts", type="std::string"),
Column(name="freq", type="int"),
Column(name="passno", type="int"),
Column(name="block_size", type="long long int"),
Column(name="blocks", type="long long int"),
Column(name="blocks_free", type="long long int"),
Column(name="blocks_avail", type="long long int"),
Column(name="inodes", type="long long int"),
Column(name="inodes_free", type="long long int"),
])
implementation("mounts@genMounts") My only nit-picks are (1) clang-format should move the cpp code to using a 2-space indent, and (2) the column name Could you paste in an example output? |
Feel free to swap "in progress" to "ready for review" when you think it's solid. I'd just ask for: clang-format -i osquery/tables/system/linux/mounts.cpp And I know the TravisCI build is failing on some boost build here. |
I've not thought much about them, just copied field names of
sounds good
That's right
These are actually device names. fsname comes from |
Checked out locally, looks solid! Going to merge and assume Travis is still broken on boost compiles. |
mount + df
Issue #255