summaryrefslogtreecommitdiffstats
path: root/lib/libbz2
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-08-10 05:38:31 +0000
committerdchagin <dchagin@FreeBSD.org>2017-08-10 05:38:31 +0000
commit7fa36a1ea4124e7ecdcd10155a1df4bac2e0e774 (patch)
treeffa9487bf8060968f7dc55532290a773da5e2017 /lib/libbz2
parent58d831d1074873baa2c269c95d3912fd255de1cb (diff)
downloadFreeBSD-src-7fa36a1ea4124e7ecdcd10155a1df4bac2e0e774.zip
FreeBSD-src-7fa36a1ea4124e7ecdcd10155a1df4bac2e0e774.tar.gz
MFC r321839:
Implement proper Linux /dev/fd and /proc/self/fd behavior by adding Linux specific things to the native fdescfs file system. Unlike FreeBSD, the Linux fdescfs is a directory containing a symbolic links to the actual files, which the process has open. A readlink(2) call on this file returns a full path in case of regular file or a string in a special format (type:[inode], anon_inode:<file-type>, etc..). As well as in a FreeBSD, opening the file in the Linux fdescfs directory is equivalent to duplicating the corresponding file descriptor. Here we have mutually exclusive requirements: - in case of readlink(2) call fdescfs lookup() method should return VLNK vnode otherwise our kern_readlink() fail with EINVAL error; - in the other calls fdescfs lookup() method should return non VLNK vnode. For what new vnode v_flag VV_READLINK was added, which is set if fdescfs has beed mounted with linrdlnk option an modified kern_readlinkat() to properly handle it. For now For Linux ABI compatibility mount fdescfs volume with linrdlnk option: mount -t fdescfs -o linrdlnk null /compat/linux/dev/fd Relnotes: yes Differential Revision: https://reviews.freebsd.org/D11452
Diffstat (limited to 'lib/libbz2')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud