Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108006815
D11217.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
992 B
Referenced Files
None
Subscribers
None
D11217.diff
View Options
Index: sys/fs/msdosfs/denode.h
===================================================================
--- sys/fs/msdosfs/denode.h
+++ sys/fs/msdosfs/denode.h
@@ -194,6 +194,10 @@
(dep)->de_FileSize = getulong((dp)->deFileSize), \
(FAT32((dep)->de_pmp) ? DE_INTERNALIZE32((dep), (dp)) : 0))
+#define DE_EXTERNALIZE32(dp, dep) \
+ putushort((dp)->deHighClust, (dep)->de_StartCluster >> 16)
+#define DE_EXTERNALIZE16(dp, dep) \
+ putushort((dp)->deHighClust, 0)
#define DE_EXTERNALIZE(dp, dep) \
(memcpy((dp)->deName, (dep)->de_Name, 11), \
(dp)->deAttributes = (dep)->de_Attributes, \
@@ -207,7 +211,7 @@
putushort((dp)->deStartCluster, (dep)->de_StartCluster), \
putulong((dp)->deFileSize, \
((dep)->de_Attributes & ATTR_DIRECTORY) ? 0 : (dep)->de_FileSize), \
- putushort((dp)->deHighClust, (dep)->de_StartCluster >> 16))
+ (FAT32((dep)->de_pmp) ? DE_EXTERNALIZE32((dp), (dep)) : DE_EXTERNALIZE16((dp), (dep))))
#if defined(_KERNEL) || defined(MAKEFS)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 11:09 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16008693
Default Alt Text
D11217.diff (992 B)
Attached To
Mode
D11217: Properly zero out high cluster data on non-FAT32 msdos filesystems
Attached
Detach File
Event Timeline
Log In to Comment