. readall: use lseek64() to read more than 4GB of a device
. vfs: 64-bit offset support for character device i/o (also remove unused dev_bio function) . memory: /dev/null and /dev/zero are infinitely large, don't stop reading/writing at 4GB
This commit is contained in:
@@ -148,7 +148,8 @@ int safe; /* safe copies */
|
||||
return EPERM;
|
||||
}
|
||||
|
||||
if (ex64hi(pos64) != 0)
|
||||
/* ZERO_DEV and NULL_DEV are infinite in size. */
|
||||
if (m_device != ZERO_DEV && m_device != NULL_DEV && ex64hi(pos64) != 0)
|
||||
return OK; /* Beyond EOF */
|
||||
position= cv64ul(pos64);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user