From 59fb52eff19975e78d0e530e25601e15ee75dbee Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Wed, 24 Mar 2004 10:36:31 +0000 Subject: [PATCH] Update (Logical change 1.345) --- ChangeLog | 8 ++++++++ include/ntfs/layout.h | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 46e14af7..49c9a140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -45,6 +45,14 @@ cloning from larger device to a smaller one but the NTFS image could have fit fully. - Added a few (hopefully) better explanatory messages to ntfsresize. + - Add new API device.[hc]::ntfs_device_heads_get() and make mkntfs use + it. + - Provide a new command line option "-H" to mkntfs to allow the user to + specify the number of heads manually. + - Add new API device.[hc]::ntfs_device_sectors_per_track_get() and make + mkntfs use it. + - Provide a new command line option "-S" to mkntfs to allow the user to + specify the number of sectors per track manually. 11/03/2004 - 1.9.0 - Added ntfsresize relocation support and a lot of cleanups. - In include/ntfs/*.h Wrap all #include "config.h" by #ifdef diff --git a/include/ntfs/layout.h b/include/ntfs/layout.h index fab9205f..1f8329a1 100644 --- a/include/ntfs/layout.h +++ b/include/ntfs/layout.h @@ -1,7 +1,7 @@ /* * layout.h - Ntfs on-disk layout structures. Part of the Linux-NTFS project. * - * Copyright (c) 2000-2002 Anton Altaparmakov + * Copyright (c) 2000-2004 Anton Altaparmakov * * This program/include file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published @@ -52,10 +52,11 @@ typedef struct { u16 sectors; /* zero */ u8 media_type; /* 0xf8 = hard disk */ u16 sectors_per_fat; /* zero */ - u16 sectors_per_track; /* irrelevant */ - u16 heads; /* irrelevant */ + u16 sectors_per_track; /* Required to boot Windows. */ + u16 heads; /* Required to boot Windows. */ u32 hidden_sectors; /* Offset to the start of the partition - relative to the disk in sectors. */ + relative to the disk in sectors. + Required to boot Windows. */ u32 large_sectors; /* zero */ /* sizeof() = 25 (0x19) bytes */ } __attribute__ ((__packed__)) BIOS_PARAMETER_BLOCK;