Show volume information.
(self, arg)
| 307 | |
| 308 | # ------------------------[ df ]-------------------------------------- |
| 309 | def do_df(self, arg): |
| 310 | "Show volume information." |
| 311 | output().df(('VOLUME', 'TOTAL SIZE', 'FREE SPACE', 'PRIORITY', |
| 312 | 'REMOVABLE', 'MOUNTED', 'HASNAMES', 'WRITEABLE', 'SEARCHABLE')) |
| 313 | for vol in self.vol_exists(): |
| 314 | str_send = '(' + vol + ') devstatus dup {pop ' + '== ' * 8 + '} if' |
| 315 | lst_recv = self.cmd(str_send).splitlines() |
| 316 | values = (vol,) + tuple(lst_recv if len(lst_recv) |
| 317 | == 8 else ['-'] * 8) |
| 318 | output().df(values) |
| 319 | |
| 320 | # ------------------------[ free ]------------------------------------ |
| 321 | def do_free(self, arg): |
nothing calls this directly
no test coverage detected