| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the structure returned by getmntent(3) static so it persists
after endmntent(3) closes the stream. No current caller in the
WIN32 port needs this functionality but it's good to match the
documented behaviour.
Populate more fields of the mntent structure in find_mount_point().
This is required to support the df -t and -T flags recently added
upstream.
The static structures used here are allocated on demand. Separate
static structures are used in each case because df iterates through
mounts calling statfs(2) on each and the WIN32 implementation of
statfs(2) calls find_mount_point().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a drive is mapped to a network share or a path display the
mapping in the 'Filesystem' column of df's output.
Since this changes the mnt_fsname field of the mntent structure
a slight alteration is needed to print_all_cwd() in ash.
Revert the change in commit a8c63f25b that enabled FEATURE_DF_FANCY
in the default configuration. None of the additional options is
very useful.
See GitHub issue #164.
|
|
|
|
|
|
|
| |
- The arguments to setmntent(3) are unused: add a macro to drop
them at call sites.
- Allow remote drives.
|
|
|
|
|
|
|
|
|
|
| |
Miscellaneous improvements:
- Enable '-a' option to display all filesystems in df(1).
- Detect the UDF CDROM filesystem and display it in 'stat -f'.
- Let getmntent(3) handle CDROM and floppy devices, ignoring those
that have no media.
- Set number of inodes and filesystem flags to 0 in statfs(2).
|
|
|
|
|
|
|
| |
It appears that uninitialised static variables are placed in the
data section rather than bss, increasing the size of the binary.
Rewrite some code to reduce the amount of static data.
|
| |
|
| |
|
| |
|
|
|