Allow reading with small uio->uio_resid or uio->uio_offset > 0 from /proc/X/map
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Sat, 27 Dec 2014 22:55:51 +0000 (22:55 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Sat, 27 Dec 2014 22:57:31 +0000 (22:57 +0000)
commite86ad61a2ea73db6f3071d794ea3a02ea5ba5c12
tree09214369cd4bd4ad28da38b1242ace51a8392366
parentf7aad75a33563d6239d2ec20ea9be8a1ea71eb6c
Allow reading with small uio->uio_resid or uio->uio_offset > 0 from /proc/X/map

Currently map file in procfs cannot be read with programs like cat
sometimes. It happens if the buffer to be read into cannot hold the entire
content of map file. Call to read returns EFBIG on this occasion, which is
somewhat confusing.

Submitted-By: Vasily Postnicov <shamaz.mazum@gmail.com>
sys/vfs/procfs/procfs_map.c