diff options
author | Jeff Bailey <jbailey@gnu.org> | 2003-07-28 22:42:26 +0000 |
---|---|---|
committer | Jeff Bailey <jbailey@gnu.org> | 2003-07-28 22:42:26 +0000 |
commit | 4ffeed83355cf158013a3ef2c6b0e9a295dcbc76 (patch) | |
tree | f2877a7a357f7561c77abea6dc274db105fbf155 /fatfs/pager.c | |
parent | ae4b8581fa4ada4843663eca3cdcb35824658227 (diff) |
2003-07-17 Marcus Brinkmann <marcus@gnu.org>
* pager.c (find_cluster): Round to cluster size rather than adding
cluster size.
Diffstat (limited to 'fatfs/pager.c')
-rw-r--r-- | fatfs/pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fatfs/pager.c b/fatfs/pager.c index 61cf7cf7..ef5a945b 100644 --- a/fatfs/pager.c +++ b/fatfs/pager.c @@ -106,7 +106,7 @@ find_cluster (struct node *node, vm_offset_t offset, rwlock_reader_lock (*lock); } - if (offset + bytes_per_cluster > node->allocsize) + if (round_cluster (offset) > node->allocsize) return EIO; err = fat_getcluster (node, offset >> log2_bytes_per_cluster, 0, cluster); |