- /* Changelog commands */
- {"=== Changelogs ==", jt_noop, 0, "changelog user management"},
- {"changelog_register", jt_changelog_register, 0,
- "register a new persistent changelog user, returns id\n"
- "usage:\tdevice <mdtname>\n\tchangelog_register [-n]"},
- {"changelog_deregister", jt_changelog_deregister, 0,
- "deregister an existing changelog user\n"
- "usage:\tdevice <mdtname>\n\tchangelog_deregister <id>"},
-
- /* Device configuration commands */
- {"== device setup (these are not normally used post 1.4) ==",
- jt_noop, 0, "device config"},
- {"attach", jt_lcfg_attach, 0,
- "set the type, name, and uuid of the current device\n"
- "usage: attach type name uuid"},
- {"detach", jt_obd_detach, 0,
- "remove driver (and name and uuid) from current device\n"
- "usage: detach"},
- {"setup", jt_lcfg_setup, 0,
- "type specific device configuration information\n"
- "usage: setup <args...>"},
- {"cleanup", jt_obd_cleanup, 0, "cleanup previously setup device\n"
- "usage: cleanup [force | failover]"},
-
- /* Test only commands */
- {"==== testing (DANGEROUS) ====", jt_noop, 0, "testing (DANGEROUS)"},
- {"--threads", jt_opt_threads, 0,
- "run <threads> separate instances of <command> on device <devno>\n"
- "--threads <threads> <verbose> <devno> <command [args ...]>"},
- {"lookup", jt_obd_mdc_lookup, 0, "report file mode info\n"
- "usage: lookup <directory> <file>"},
- {"readonly", jt_obd_set_readonly, 0,
- "disable writes to the underlying device\n"},
- {"notransno", jt_obd_no_transno, 0,
- "disable sending of committed-transno updates\n"},
+ /* Changelog commands */
+ {"=== Changelogs ==", NULL, 0, "changelog user management"},
+ {"changelog_register", jt_changelog_register, 0,
+ "register a new persistent changelog user, returns id\n"
+ "usage: --device <mdtname> changelog_register [-n]"},
+ {"changelog_deregister", jt_changelog_deregister, 0,
+ "deregister an existing changelog user\n"
+ "usage: --device <mdtname> changelog_deregister <id>"},
+
+ /* Persistent Client Cache (PCC) commands */
+ {"=== Persistent Client Cache ===", NULL, 0, "PCC user management"},
+ {"pcc", jt_pcc, pccdev_cmdlist,
+ "lctl commands used to interact with PCC features:\n"
+ "lctl pcc add - add a PCC backend to a client\n"
+ "lctl pcc del - delete a PCC backend on a client\n"
+ "lctl pcc clear - remove all PCC backends on a client\n"
+ "lctl pcc list - list all PCC backends on a client\n"},
+
+ /* Device configuration commands */
+ {"== device setup (these are not normally used post 1.4) ==",
+ NULL, 0, "device config"},
+ {"attach", jt_lcfg_attach, 0,
+ "set the type, name, and uuid of the current device\n"
+ "usage: attach type name uuid"},
+ {"detach", jt_obd_detach, 0,
+ "remove driver (and name and uuid) from current device\n"
+ "usage: detach"},
+ {"setup", jt_lcfg_setup, 0,
+ "type specific device configuration information\n"
+ "usage: setup <args...>"},
+ {"cleanup", jt_obd_cleanup, 0, "cleanup previously setup device\n"
+ "usage: cleanup [force | failover]"},
+ {"clear_conf", jt_lcfg_clear, 0,
+ "drop unused config logs for a device or filesystem\n"
+ "usage: clear_conf <device|fsname>"},
+ {"fork_lcfg", jt_lcfg_fork, 0,
+ "copy configuration files for named filesystem with given name\n"
+ "usage: fork_lcfg <fsname> <newname>"},
+ {"erase_lcfg", jt_lcfg_erase, 0,
+ "permanently erase configuration for the named filesystem\n"
+ "usage: erase_lcfg <fsname>"},
+
+ /* Test only commands */
+ {"==== testing (DANGEROUS) ====", NULL, 0, "testing (DANGEROUS)"},
+ {"--threads", jt_opt_threads, 0,
+ "run <threads> separate instances of <command> on device <devno>\n"
+ "--threads <threads> <verbose> <devno> <command [args ...]>"},
+ {"lookup", jt_obd_mdc_lookup, 0, "report file mode info\n"
+ "usage: lookup <directory> <file>"},
+ {"readonly", jt_obd_set_readonly, 0,
+ "disable writes to the underlying device\n"},
+ {"notransno", jt_obd_no_transno, 0,
+ "disable sending of committed-transno updates\n"},