mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 09:57:52 +02:00
GMappedFile: return an error when trying to map a device
Previously, we were returning an empty buffer for all filenames where fstat() gives a size of 0. But this is only appropriate for regular files. Also improve the documentation around this issue. Based on a patch by Ryan Lortie. Conflicts: glib/tests/mappedfile.c https://bugzilla.gnome.org/show_bug.cgi?id=659212
This commit is contained in:
@@ -80,8 +80,8 @@ differences in when a system will report a given error, etc.
|
||||
couldn't find the device. This can mean that the device file was
|
||||
installed incorrectly, or that the physical device is missing or
|
||||
not correctly attached to the computer.
|
||||
@G_FILE_ERROR_NODEV: This file is of a type that doesn't support
|
||||
mapping.
|
||||
@G_FILE_ERROR_NODEV: The underlying file system of the specified file
|
||||
does not support memory mapping.
|
||||
@G_FILE_ERROR_ROFS: The directory containing the new link can't be
|
||||
modified because it's on a read-only file system.
|
||||
@G_FILE_ERROR_TXTBSY: Text file busy.
|
||||
|
Reference in New Issue
Block a user