mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-28 19:06:39 -05:00
Add lshw to collect info tool (#1610)
Some checks failed
mkdocs / deploy (push) Has been cancelled
Some checks failed
mkdocs / deploy (push) Has been cancelled
This commit is contained in:
parent
1290ab9708
commit
7f1b7ac343
1 changed files with 11 additions and 1 deletions
|
|
@ -165,6 +165,13 @@ _software_versions(const std::string &output_)
|
|||
::_run({"smbd","--version"},output_);
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
_lshw(const std::string &output_)
|
||||
{
|
||||
::_run({"lshw"},output_);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
mergerfs::collect_info::main(int argc_,
|
||||
|
|
@ -189,6 +196,7 @@ mergerfs::collect_info::main(int argc_,
|
|||
fmt::print("* Please have mergerfs mounted before running this tool.\n");
|
||||
|
||||
fs::unlink(output_filepath);
|
||||
|
||||
::_mergerfs_version(output_filepath);
|
||||
::_uname(output_filepath);
|
||||
::_lsb_release(output_filepath);
|
||||
|
|
@ -199,10 +207,12 @@ mergerfs::collect_info::main(int argc_,
|
|||
::_mergerfs_settings(output_filepath);
|
||||
::_fstab(output_filepath);
|
||||
::_software_versions(output_filepath);
|
||||
::_lshw(output_filepath);
|
||||
|
||||
fmt::print("* Upload the following file to your"
|
||||
" GitHub ticket or put on https://pastebin.com"
|
||||
" when requesting support.\n* {}\n",output_filepath);
|
||||
" when requesting support.\n* {}\n",
|
||||
output_filepath);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue