* Andrew Vaughan ([EMAIL PROTECTED]) [070404 08:54]:
> The file system on /dev/hda8 was checked immediately before reboot using the 
> GUI tool 
> in Windows 2000.  As the output /var/log/fsck/checkfs shows /sbin/fsck.vfat 
> decided 
> during boot that the filesystem was inconsistent and automatically truncated 
> the file.  
> Note that it hasn't actually released the clusters yet.  The clusters seem to 
> be freed 
> during when fsck is run at the next boot.
> 
> Also shown below is the result of manually copying an equivalant file, and 
> manually 
> running fsck.vfat is sufficent to reproduce the problem.
> 
> A quick test shows that Sarge does not truncate the file during boot.

The only difference between these versions is:
--- dosfstools-2.11.orig/dosfsck/boot.c
+++ dosfstools-2.11/dosfsck/boot.c
@@ -40,7 +40,7 @@
     ({                                         \
        unsigned short __v;                     \
        memcpy( &__v, &f, sizeof(__v) );        \
-       CF_LE_W( *(unsigned short *)&f );       \
+       CF_LE_W( *(unsigned short *)&__v );     \
     })
 #else
 #define GET_UNALIGNED_W(f) CF_LE_W( *(unsigned short *)&f )


Cheers,
Andi
-- 
  http://home.arcor.de/andreas-barth/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to