| 88647437 | 25-Oct-2013 |
Robin Hahling <robin.hahling@gw-computing.net> |
Fix memory leak in df(1)
Fix a memory leak in makenetvfslist which would occur when a previous call to strdup fails and the function returns on error. The simple fix is a call to free(3) to free mem
Fix memory leak in df(1)
Fix a memory leak in makenetvfslist which would occur when a previous call to strdup fails and the function returns on error. The simple fix is a call to free(3) to free memory allocated to listptr before returning.
show more ...
|
| 009e9a29 | 25-Oct-2013 |
Robin Hahling <robin.hahling@gw-computing.net> |
df -hi prints inodes count "human-readable"
Enable "human-readable" printing of inodes count when df(1) is called with both -h and -i flags. This is similar to what can be found on FreeBSD df(1) or
df -hi prints inodes count "human-readable"
Enable "human-readable" printing of inodes count when df(1) is called with both -h and -i flags. This is similar to what can be found on FreeBSD df(1) or GNU df(1).
The code has been adapted from FreeBSD's df(1) and the manpage updated accordingly.
Example output:
Now: % df -hi Filesystem Size Used Avail Capacity iused ifree %iused Mounted on [...] /dev/serno/VB6cbedbd6-0a1f16ee.s1a 756M 302M 393M 43% 949 96k 1% /boot [...]
Before: % df -hi Filesystem Size Used Avail Capacity iused ifree %iused Mounted on [...] /dev/serno/VB6cbedbd6-0a1f16ee.s1a 756M 302M 393M 43% 949 96329 1% /boot [...]
show more ...
|