Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132550845
D39060.id118751.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
627 B
Referenced Files
None
Subscribers
None
D39060.id118751.diff
View Options
diff --git a/usr.sbin/makefs/msdos/msdosfs_vnops.c b/usr.sbin/makefs/msdos/msdosfs_vnops.c
--- a/usr.sbin/makefs/msdos/msdosfs_vnops.c
+++ b/usr.sbin/makefs/msdos/msdosfs_vnops.c
@@ -492,11 +492,7 @@
MSDOSFS_DPRINTF(("%s(cn=%lu, bn=%llu, blsize=%d)\n",
__func__, cn, (unsigned long long)bn, blsize));
- if ((error = bread((void *)pmp->pm_devvp, bn, blsize, 0,
- &bp)) != 0) {
- MSDOSFS_DPRINTF(("bread %d\n", error));
- goto out;
- }
+ bp = getblk((void *)pmp->pm_devvp, bn, blsize, 0, 0, 0);
cpsize = MIN((nsize - offs), blsize - on);
memcpy(bp->b_data + on, dat + offs, cpsize);
bwrite(bp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 18, 9:56 PM (4 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23895909
Default Alt Text
D39060.id118751.diff (627 B)
Attached To
Mode
D39060: msdos: Use getblk rather than bread to write out FAT copy
Attached
Detach File
Event Timeline
Log In to Comment