Commit Graph

4 Commits

Author SHA1 Message Date
Rémi Denis-Courmont cc129a71d7 Remove old mail address from sources 2019-09-04 22:11:04 +03:00
Thomas Guillem efcd1f8e59 linux: vlc_memfd: handle EOPNOTSUPP errno
And remove useless ENOENT check: if open() fails with ENOENT, then mkstemp()
will fail with the same error.

From man open(2):
EOPNOTSUPP: The filesystem containing pathname does not support O_TMPFILE.
2019-06-14 16:44:57 +02:00
Thomas Guillem 3f5661b944 linux: vlc_memfd: fallback to POSIX implementation
From man (2) open:

O_TMPFILE  requires  support by the underlying filesystem; only a subset of
Linux filesystems provide that support.  In the initial implementation, support
was provided in  the  ext2,  ext3,  ext4,  UDF, Minix,  and shmem filesystems.
Support for other filesystems has subsequently been added as follows: XFS
(Linux 3.15); Btrfs (Linux 3.16); F2FS (Linux 3.16); and ubifs (Linux 4.9)

One must check for two different error codes, EISDIR and ENOENT, when trying to
determine whether the kernel supports O_TMPFILE functionality.

Fixes #22250
2019-05-06 09:26:46 +02:00
Rémi Denis-Courmont 037cd82856 linux: split out Linux-specific stuff from filesystem.c 2018-02-12 19:31:50 +02:00