lkml.org 
[lkml]   [2008]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Linux-NTFS-Dev] Oops with corrupted NTFS image
Date
Hi,

Thanks for the report. Would you be able to try the below change to
your kernel and repeat?

On 6 Jul 2008, at 18:21, Eric Sesterhenn wrote:
> 0xc030ad5c is in ntfs_read_locked_inode (fs/ntfs/time.h:95).
> 90 u64 t = (u64)(sle64_to_cpu(time) - NTFS_TIME_OFFSET);
> 91 /*
> 92 * Convert the time to 1-second intervals and the remainder to
> 93 * 1-nano-second intervals.
> 94 */
> 95 ts.tv_nsec = do_div(t, 10000000) * 100;
> 96 ts.tv_sec = t;
> 97 return ts;
> 98 }

Please replace the ts.tv_nsec=... and ts.tv_sec=... with:

if (t) {
ts.tv_nsec = do_div(t, 10000000) * 100;
ts.tv_sec = t;
} else {
ts.tv_nsec = 0;
ts.tv_sec = 0;
}

Thanks a lot in advance!

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/



\
 
 \ /
  Last update: 2008-07-07 10:37    [W:0.055 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site