Btw, we are using a lot of hardcoded 512 values here for sector size even though there is a field in fthe Volume structure for that. Is that correct?
Am 23.08.2012 14:02, schrieb tkreuzer@svn.reactos.org:
Author: tkreuzer Date: Thu Aug 23 12:02:30 2012 New Revision: 57141
URL: http://svn.reactos.org/svn/reactos?rev=57141&view=rev Log: [FREELDR] Improve readability of sector calculation
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/fat... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/fs/fat.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/fs/fat.c [iso-8859-1] Thu Aug 23 12:02:30 2012 @@ -1338,8 +1338,7 @@ // // Seek to right position //
- Position.HighPart = SectorNumber >> 23;
- Position.LowPart = SectorNumber << 9;
- Position.QuadPart = (ULONGLONG)SectorNumber * 512; ret = ArcSeek(Volume->DeviceId, &Position, SeekAbsolute); if (ret != ESUCCESS) {