| 761 | #define CMD_IN_PROGRESS 2 // task not completed. don't exit |
| 762 | |
| 763 | int |
| 764 | cmd_list(char * /* cmd ATS_UNUSED */) |
| 765 | { |
| 766 | printf("LIST\n\n"); |
| 767 | |
| 768 | // show hostdb size |
| 769 | |
| 770 | int h_size = 120000; |
| 771 | REC_ReadConfigInteger(h_size, "proxy.config.hostdb.size"); |
| 772 | printf("Host Database size:\t%d\n", h_size); |
| 773 | |
| 774 | // show cache config information.... |
| 775 | |
| 776 | Note("Cache Storage:"); |
| 777 | Store tStore; |
| 778 | Result result = tStore.read_config(); |
| 779 | |
| 780 | if (result.failed()) { |
| 781 | Note("Failed to read cache storage configuration: %s", result.message()); |
| 782 | return CMD_FAILED; |
| 783 | } else { |
| 784 | tStore.write_config_data(fileno(stdout)); |
| 785 | return CMD_OK; |
| 786 | } |
| 787 | } |
| 788 | |
| 789 | /** Parse the given string and skip the first word. |
| 790 | * |
nothing calls this directly
no test coverage detected