Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159651621
D19598.id55122.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D19598.id55122.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D19598: Remove incorrect comments.
Attached
Detach File
Event Timeline
Log In to Comment