. 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:
Ben Gras
2007-04-24 13:27:33 +00:00
parent cc7c561d41
commit 8eb09f6ddc
3 changed files with 18 additions and 16 deletions
+2 -1
View File
@@ -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);