9
0
Fork 0
barebox/fs
Sascha Hauer 8d064097eb fs: fix standard zero, full devices
The standard devices are currently broken since they have
the size ~0. As now files use loff_t as file size which is a signed
type the read implementation gets confused and now returns -1.

The current implementation also has the (somewhat theorical) problem
that we do not have real streaming devices, so /dev/zero went out
of zeroes after reading 4GB (or now LLONG_MAX).

This patch introduces a new cdev flag DEVFS_IS_CHARACTER_DEV and a new
file size flag FILE_SIZE_STREAM which makes it possible to create
real stream devices instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-04 08:38:22 +02:00
..
cramfs use loff_t for file offsets 2012-06-30 16:53:24 +02:00
fat Merge branch 'for-next/sparse' 2012-07-02 10:59:37 +02:00
Kconfig Merge branch 'next' 2012-06-06 14:11:57 +02:00
Makefile fs: Add NFS support 2012-05-14 08:36:03 +02:00
devfs-core.c partitions: Make 64bit capable 2012-06-30 16:53:25 +02:00
devfs.c fs: fix standard zero, full devices 2012-07-04 08:38:22 +02:00
fs.c fs: fix standard zero, full devices 2012-07-04 08:38:22 +02:00
nfs.c use loff_t for file offsets 2012-06-30 16:53:24 +02:00
ramfs.c use loff_t for file offsets 2012-06-30 16:53:24 +02:00
tftp.c use loff_t for file offsets 2012-06-30 16:53:24 +02:00