summaryrefslogtreecommitdiff
path: root/ufs
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
commit3ebafcdb7e84164ed1d9ca30a8b4012121eaba0e (patch)
tree3f04ff7835fb01adf6458d7019dcd385777981a4 /ufs
parent3056fb2431475dea5c568b150566fff74c8538be (diff)
(diskfs_S_file_get_storage_info):
Adjust device addresses for possible differences between DEV_BSIZE & device block size.
Diffstat (limited to 'ufs')
-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