freebsd-skq/sys/fs/ext2fs
jhb e09154bf75 Rework pathconf handling for FIFOs.
On the one hand, FIFOs should respect other variables not supported by
the fifofs vnode operation (such as _PC_NAME_MAX, _PC_LINK_MAX, etc.).
These values are fs-specific and must come from a fs-specific method.
On the other hand, filesystems that support FIFOs are required to
support _PC_PIPE_BUF on directory vnodes that can contain FIFOs.
Given this latter requirement, once the fs-specific VOP_PATHCONF
method supports _PC_PIPE_BUF for directories, it is also suitable for
FIFOs permitting a single VOP_PATHCONF method to be used for both
FIFOs and non-FIFOs.

To that end, retire all of the FIFO-specific pathconf methods from
filesystems and change FIFO-specific vnode operation switches to use
the existing fs-specific VOP_PATHCONF method.  For fifofs, set it's
VOP_PATHCONF to VOP_PANIC since it should no longer be used.

While here, move _PC_PIPE_BUF handling out of vop_stdpathconf() so that
only filesystems supporting FIFOs will report a value.  In addition,
only report a valid _PC_PIPE_BUF for directories and FIFOs.

Discussed with:	bde
Reviewed by:	kib (part of a larger patch)
MFC after:	1 month
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D12572
2017-12-19 22:39:05 +00:00
..
ext2_acl.c SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_acl.h SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_alloc.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_balloc.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_bmap.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_csum.c SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_dinode.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_dir.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_extattr.c Fix extattr getters in case of neither uio nor buffer was not passed to VOP_*. 2017-12-12 20:02:48 +00:00
ext2_extattr.h SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_extents.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_extents.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_extern.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_hash.c SPDX: some uses of the RSA-MD license. 2017-12-13 16:30:39 +00:00
ext2_htree.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_inode_cnv.c SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_inode.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_lookup.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_mount.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_subr.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_vfsops.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_vnops.c Rework pathconf handling for FIFOs. 2017-12-19 22:39:05 +00:00
ext2fs.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
fs.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
htree.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
inode.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00