FreeBSD Bugzilla – Attachment 175818 Details for
Bug 213507
[msdosfs]: Prevent occasional directory corruption while extending it to another cluster
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch
msdosfs_002.patch (text/plain), 861 bytes, created by
Vlad Movchan
on 2016-10-16 12:15:01 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Vlad Movchan
Created:
2016-10-16 12:15:01 UTC
Size:
861 bytes
patch
obsolete
>Index: /usr/src/sys/fs/msdosfs/msdosfs_fat.c >=================================================================== >--- /usr/src/sys/fs/msdosfs/msdosfs_fat.c (revision 306964) >+++ /usr/src/sys/fs/msdosfs/msdosfs_fat.c (working copy) >@@ -1023,11 +1023,12 @@ > /* > * Get the buf header for the new block of the file. > */ >- if (dep->de_Attributes & ATTR_DIRECTORY) >+ if (dep->de_Attributes & ATTR_DIRECTORY) { > bp = getblk(pmp->pm_devvp, > cntobn(pmp, cn++), > pmp->pm_bpcluster, 0, 0, 0); >- else { >+ clrbuf(bp); >+ } else { > bp = getblk(DETOV(dep), > frcn++, > pmp->pm_bpcluster, 0, 0, 0); >@@ -1042,8 +1043,8 @@ > panic("extendfile: pcbmap"); > else > bp->b_blkno = blkno; >+ vfs_bio_clrbuf(bp); > } >- vfs_bio_clrbuf(bp); > if (bpp) { > *bpp = bp; > bpp = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213507
:
175786
| 175818