| 1 | TODO list for agedu |
| 2 | =================== |
| 3 | |
| 4 | Before it's non-embarrassingly releasable: |
| 5 | |
| 6 | - arrange to be able to identify directories and leave them on one |
| 7 | side of the usual age display |
| 8 | |
| 9 | - cross-Unix portability: |
| 10 | + use autoconf |
| 11 | * configure use of stat64 |
| 12 | * configure use of /proc/net/tcp |
| 13 | * configure use of /dev/random |
| 14 | * configure use of Linux syscall magic replacing readdir |
| 15 | + later glibcs have fdopendir, hooray! So we can use that |
| 16 | too, if it's available and O_NOATIME is too. |
| 17 | * what do we do elsewhere about _GNU_SOURCE? |
| 18 | |
| 19 | - man page, --version. |
| 20 | |
| 21 | Future possibilities: |
| 22 | |
| 23 | - IPv6 support in the HTTP server |
| 24 | * of course, Linux magic auth can still work in this context; we |
| 25 | merely have to be prepared to open one of /proc/net/tcp or |
| 26 | /proc/net/tcp6 as appropriate. |
| 27 | |
| 28 | - run-time configuration in the HTTP server |
| 29 | * I think this probably works by having a configuration form, or |
| 30 | a link pointing to one, somewhere on the report page. If you |
| 31 | want to reconfigure anything, you fill in and submit the form; |
| 32 | the web server receives HTTP GET with parameters and a |
| 33 | referer, adjusts its internal configuration, and returns an |
| 34 | HTTP redirect back to the referring page - which it then |
| 35 | re-renders in accordance with the change. |
| 36 | * All the same options should have their starting states |
| 37 | configurable on the command line too. |
| 38 | |
| 39 | - curses-ish equivalent of the web output |
| 40 | + try using xterm 256-colour mode. Can (n)curses handle that? If |
| 41 | not, try doing it manually. |
| 42 | + I think my current best idea is to bypass ncurses and go |
| 43 | straight to terminfo: generate lines of attribute-interleaved |
| 44 | text and display them, so we only really need the sequences |
| 45 | "go here and display stuff", "scroll up", "scroll down". |
| 46 | + Infrastructure work before doing any of this would be to split |
| 47 | html.c into two: one part to prepare an abstract data |
| 48 | structure describing an HTML-like report (in particular, all |
| 49 | the index lookups, percentage calculation, vector arithmetic |
| 50 | and line sorting), and another part to generate the literal |
| 51 | HTML. Then the former can be reused to produce very similar |
| 52 | reports in coloured plain text. |
| 53 | |
| 54 | - http://msdn.microsoft.com/en-us/library/ms724290.aspx suggest |
| 55 | modern Windowses support atime-equivalents, so a Windows port is |
| 56 | possible in principle. |
| 57 | + For a full Windows port, would need to modify the current |
| 58 | structure a lot, to abstract away (at least) memory-mapping of |
| 59 | files, details of disk scan procedure, networking for httpd. |
| 60 | Unclear what the right UI would be on Windows, too; |
| 61 | command-line exactly as now might be considered just a |
| 62 | _little_ unfriendly. Or perhaps not. |
| 63 | + Alternatively, a much easier approach would be to write a |
| 64 | Windows version of just the --scan-dump mode, which does a |
| 65 | filesystem scan via the Windows API and generates a valid |
| 66 | agedu dump file on standard output. Then one would simply feed |
| 67 | that over the network connection of one's choice to the rest |
| 68 | of agedu running on Unix as usual. |