#
304f52ad |
| 11-Jan-2024 |
Chia-Jung Chang <maluma110020036@gapp.nthu.edu.tw> |
df(1): Fix grammar
Event: Advance UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1027
|
#
e3d3e1ff |
| 26-Dec-2023 |
Pin-Yi Kuo <kuokuoyiyi@gapp.nthu.edu.tw> |
df(1): fix a typo
On the manpage of df(1), "according" is mistyped into "acccording"
Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Signed-off-by: Pin-Yi Kuo <kuokuoyiyi@gapp.nthu.edu.t
df(1): fix a typo
On the manpage of df(1), "according" is mistyped into "acccording"
Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Signed-off-by: Pin-Yi Kuo <kuokuoyiyi@gapp.nthu.edu.tw> Reviewed by: imp, zlei, Mina Galić Pull Request: https://github.com/freebsd/freebsd-src/pull/944
show more ...
|
#
90aea514 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
b2c76c41 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line nroff pattern
Remove /^\.\\"\s*\$FreeBSD\$$\n/
|
Revision tags: release/13.2.0 |
|
#
c33db74b |
| 29-Mar-2023 |
Stefan Eßer <se@FreeBSD.org> |
fs/msdosfs: add tracking of free root directory entries
This update implements tallying of free directory entries during create, delete, or rename operations on FAT12 and FAT16 file systems.
Prior
fs/msdosfs: add tracking of free root directory entries
This update implements tallying of free directory entries during create, delete, or rename operations on FAT12 and FAT16 file systems.
Prior to this change, the total number of root directory entries was reported as number of inodes, but 0 as the number of free inodes, causing system health monitoring software to warn about a suspected disk full issue.
The FAT12 and FAT16 file systems provide a limited number of root directory entries, e.g. 512 on typical hard disk formats. The valid range of values is 1 to 65535, but the msdosfs code will effectively round up "odd" values to the next multiple of 16 (e.g. 513 would allow for 528 root directory entries).
This update implements tracking of directory entries during create, delete, or rename operations, with initial values determined by scanning the directory when the file system is mounted.
Total and free directory entries are reported in the f_files and f_ffree elements of struct statfs, despite differences in semantics of these values:
- There is no limit on the number of files and directories that can be created on a FAT file system. Only the root directory of FAT12 and FAT16 file systems is limited, any number of files can still be created in sub-directories, even when 0 free "inodes" are reported.
- A single file can require 1 to 21 directory entries, depending on the character set, structure, and length of the name. The DOS 8.3 style file name takes up 1 entry, and if the name does not comply with the syntax of a DOS 8.3 file name, 1 additional entry is used for each 13 characters of the file name. Since all these entries have to be contiguous, it is possible that a file or directory with a long name can not be created, despite a sufficient total number of free directory entries.
- Renaming a file can require more directory entries than currently allocated to store its long name, which may prevent an in-place update of the name if more entries are needed. This may cause a rename operation to fail if no contiguous range of free entries for the new name can be found.
- The volume label is stored in a directory entry. An empty FAT file system with a volume label will therefore show 1 used "inode" in df.
- The perceentage of free inodes shown in df or monitoring tools does only represent the state of the root directory of a FAT12 or FAT16 file system. Neither does a reported value of 0% free inodes does prevent files from being created in sub-directories, nor does a value of 50% free inodes guarantee that even a single file with a "long" name can be created in the root directory (if every other directory entry is occupied and there are no 2 contiguous entries).
The statfs(2) and df(1) man pages have been updated with a notice regarding the possibly different semantics of values reported as total and free inodes for non-Unix file systems.
PR: 270053 Reported by: Ben Woods <woodsb02@freebsd.org> Approved by: mckusick MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D38987
show more ...
|
Revision tags: release/12.4.0, release/13.1.0 |
|
#
2eee44bd |
| 10-Mar-2022 |
Baptiste Daroussin <bapt@FreeBSD.org> |
df: do not report a 100% full inode usage on fs without inodes
Before: devfs 2 2 0 100% 0 0 100% /dev
After: devfs 2 2 0 100% 0
df: do not report a 100% full inode usage on fs without inodes
Before: devfs 2 2 0 100% 0 0 100% /dev
After: devfs 2 2 0 100% 0 0 - /dev
The previous behaviour was confusing for end users and many monitoring tools
Note the linux df tools is also using the same syntax '-' for such filesystem
MFC After: 2 weeks Reviewed by: manu, emaste, imp Differential Revision: https://reviews.freebsd.org/D34515
show more ...
|
#
f0fd4a32 |
| 10-Feb-2022 |
Stefan Eßer <se@FreeBSD.org> |
bin/df: allow -t option to be used together with -l
The df command provides a -l option to exclude all non-local file systems and a -t option with a (positive or negative) list of file system types
bin/df: allow -t option to be used together with -l
The df command provides a -l option to exclude all non-local file systems and a -t option with a (positive or negative) list of file system types to display.
This commit adds support for a combination of -l and -t. If both are specified, the parameter list of the -t option is applied on top of the selection of öocal file systems (independently of the order of the -l and -t options).
E.g., "df -t noprocfs,sysfs -l" will select all local file systems except those of type procfs and sysfs.
PR: 260921 Approved by: imp Relnotes: yes MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33748
show more ...
|
Revision tags: release/12.3.0, release/13.0.0 |
|
#
a0e85d0e |
| 20-Jan-2021 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
Remove the unnecessary space before the colon
MFC after: 3 days
|
#
1740c2db |
| 13-Nov-2020 |
Mark Johnston <markj@FreeBSD.org> |
df: Remove support for mounting devices
This was marked deprecated in r329092, over two and a half years ago. This functionality is also buggy per PR 237368.
PR: 237368 Reviewed by: brooks, cem, e
df: Remove support for mounting devices
This was marked deprecated in r329092, over two and a half years ago. This functionality is also buggy per PR 237368.
PR: 237368 Reviewed by: brooks, cem, emaste, imp Differential Revision: https://reviews.freebsd.org/D27197
show more ...
|
Revision tags: release/12.2.0 |
|
#
ad3d2e7e |
| 05-Oct-2020 |
Fernando Apesteguía <fernape@FreeBSD.org> |
df(1): Add EXAMPLES section to man page
* Add EXAMPLES section with four simple examples. * Simplify -H flag description. This makes easy to see the difference between this flag and -h * While her
df(1): Add EXAMPLES section to man page
* Add EXAMPLES section with four simple examples. * Simplify -H flag description. This makes easy to see the difference between this flag and -h * While here, fix .Tn deprecated macro.
Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26662
show more ...
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0 |
|
#
083c8ded |
| 13-Aug-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r322451
|
#
0275f9db |
| 11-Aug-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r321383 through r322397.
|
#
d0bc27e4 |
| 09-Aug-2017 |
Kyle Evans <kevans@FreeBSD.org> |
df(1): Add --si as an alias for -H
Reviewed by: cem (earlier version), emaste Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D11749
|
Revision tags: release/11.1.0 |
|
#
348238db |
| 01-Mar-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r314420 through r314481.
|
#
fbbd9655 |
| 01-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0 |
|
#
b626f5a7 |
| 04-Jan-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH r289384-r293170
Sponsored by: The FreeBSD Foundation
|
#
c99bbcab |
| 02-Dec-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Catch up with head.
|
#
06691045 |
| 01-Dec-2015 |
Craig Rodrigues <rodrigc@FreeBSD.org> |
Add more text to explain --libxo flag.
|
Revision tags: release/10.2.0 |
|
#
d899be7d |
| 19-Jan-2015 |
Glen Barber <gjb@FreeBSD.org> |
Reintegrate head: r274132-r277384
Sponsored by: The FreeBSD Foundation
|
#
8f0ea33f |
| 13-Jan-2015 |
Glen Barber <gjb@FreeBSD.org> |
Reintegrate head revisions r273096-r277147
Sponsored by: The FreeBSD Foundation
|
#
9268022b |
| 19-Nov-2014 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Merge from head@274682
|
Revision tags: release/10.1.0 |
|
#
a9413f6c |
| 08-Nov-2014 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
Sync to HEAD@r274297.
|
#
6fea8dc8 |
| 07-Nov-2014 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Document that df(1) supports libxo(3).
|
Revision tags: release/9.3.0 |
|
#
6cec9cad |
| 03-Jun-2014 |
Peter Grehan <grehan@FreeBSD.org> |
MFC @ r266724
An SVM update will follow this.
|
#
3b8f0845 |
| 28-Apr-2014 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Merge head
|