Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2022 13:12:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260921] /bin/df: make -l  and -t nonexclusive
Message-ID:  <bug-260921-227-CJw8CEhHzB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260921-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260921-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260921

Stefan E=C3=9Fer <se@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |se@FreeBSD.org
             Status|New                         |Open
                 CC|                            |se@FreeBSD.org

--- Comment #1 from Stefan E=C3=9Fer <se@FreeBSD.org> ---
Created attachment 230685
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230685&action=
=3Dedit
Allow -l and -t to be used together

The attached patch allows -l and -t to both be specified.

It is tested to work, but maybe the desired semantics need to be better
specified.

The patch makes -l and additional and independent condition that can be app=
lied
to the list generated by -t <type,...>.

An alternative concept would be to allow for multiple -t options and to make
each operate on the list of file systems selected at this point.

The traditional behavior of e.g. "df -t notmpfs,noufs" would be to list all
file systems, since a set union is performed for each parameters of -t (i.e.
all file systems that are not tmpfs are added to the list, then all that are
not ufs ...).

With multiple -t options allowed, -l could just be equivalent to the list of
all local file systems specified with -l. In that case, a later "noufs" cou=
ld
delete file systems from the list (and a -l would delete all currently in t=
he
list that are not local).

But that would be a much more complex change and not that useful since it is
not expected to work by currently existing scripts.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260921-227-CJw8CEhHzB>