Page MenuHomeFreeBSD

D19598.id55122.diff
No OneTemporary

D19598.id55122.diff

Index: sys/fs/ext2fs/ext2_bmap.c
===================================================================
--- sys/fs/ext2fs/ext2_bmap.c
+++ sys/fs/ext2fs/ext2_bmap.c
@@ -147,12 +147,12 @@
* which they point. Triple indirect blocks are addressed by one less than
* the address of the first double indirect block to which they point.
*
- * ext2_bmaparray does the bmap conversion, and if requested returns the
- * array of logical blocks which must be traversed to get to a block.
- * Each entry contains the offset into that block that gets you to the
- * next block and the disk address of the block (if it is assigned).
+ * This function maps the logical block number bn to a physical block number,
+ * returned in bnp. If runb and runp are specified, they return a count
+ * of blocks before and after *bnp that are contiguous on disk, respectively.
+ * That is, the logical blocks in the range [bn - *runb, bn + *runp] map to
+ * [*bnp - *runb, *bnp + *runp].
*/
-
int
ext2_bmaparray(struct vnode *vp, daddr_t bn, daddr_t *bnp, int *runp, int *runb)
{
Index: sys/ufs/ufs/ufs_bmap.c
===================================================================
--- sys/ufs/ufs/ufs_bmap.c
+++ sys/ufs/ufs/ufs_bmap.c
@@ -98,12 +98,13 @@
* which they point. Triple indirect blocks are addressed by one less than
* the address of the first double indirect block to which they point.
*
- * ufs_bmaparray does the bmap conversion, and if requested returns the
- * array of logical blocks which must be traversed to get to a block.
- * Each entry contains the offset into that block that gets you to the
- * next block and the disk address of the block (if it is assigned).
+ * This function maps the logical block number bn to a physical block number,
+ * returned in bnp. If mapping an extended attribute block, nbp must point to a
+ * buffer for that block. If runb and runp are specified, they return a count
+ * of blocks before and after *bnp that are contiguous on disk, respectively.
+ * That is, the logical blocks in the range [bn - *runb, bn + *runp] map to
+ * [*bnp - *runb, *bnp + *runp].
*/
-
int
ufs_bmaparray(vp, bn, bnp, nbp, runp, runb)
struct vnode *vp;

File Metadata

Mime Type
text/plain
Expires
Wed, Jun 17, 3:57 PM (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34030710
Default Alt Text
D19598.id55122.diff (2 KB)

Event Timeline