hwhw/kindlepdfviewer — pull request #310 by tigran123 (2012-09-24 18:52:25+00:00)
Title: Fix a crash in getDiskSizeInfo() (in emulator) and use util.df function.

1. When executed in the emulator the viewer will crash if you press
Right on any zip file in the filechooser. This is because the assertion
on "df /mnt/us | tail -1" will fail as "/mnt/us" is normally
non-existent.
2. The proper (faster, reliable, portable) way of obtaining the number
of total and free bytes on a filesystem is by using the statvfs(2)
system call via util.df Lua interface, see util.c.
3. Removed the "used" field in the function's return as unused and
unneeded.