summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 19:24:43 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 19:24:43 +0000
commit102ca48a3c04c37a4c500ebc9ceb3b4cfc8b1df9 (patch)
tree6eb46f45c33a30a6b69609616cfc14088a004f9a
parent68de70d85b5a804c85b5e6890a236bd3c770759c (diff)
(diskfs_S_file_get_storage_info):
Adjust device addresses for possible differences between DEV_BSIZE & device block size.
-rw-r--r--ufs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index 2965114f..fe5abbb9 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -683,6 +683,8 @@ diskfs_S_file_get_storage_info (struct protid *cred,
(((i + 1) * sblock->fs_bsize > np->allocsize)
? np->allocsize - i * sblock->fs_bsize
: sblock->fs_bsize);
+ start <<= log2_dev_blocks_per_dev_bsize;
+ length <<= log2_dev_blocks_per_dev_bsize;
if (num_runs == 0 || run->start + run->length != start)
*run++ = (struct store_run){ start, length };
else