Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262101AbUDJUau (ORCPT ); Sat, 10 Apr 2004 16:30:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261920AbUDJUat (ORCPT ); Sat, 10 Apr 2004 16:30:49 -0400 Received: from mailhost.tue.nl ([131.155.2.7]:29702 "EHLO mailhost.tue.nl") by vger.kernel.org with ESMTP id S262101AbUDJU3n (ORCPT ); Sat, 10 Apr 2004 16:29:43 -0400 Date: Sat, 10 Apr 2004 22:29:37 +0200 From: Andries Brouwer To: Szakacsits Szabolcs Cc: fledely , linux-ntfs-dev@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: Accessing odd last partition sector (was: [Linux-NTFS-Dev] mkntfs dirty volume marking) Message-ID: <20040410202937.GB1909@wsdw14.win.tue.nl> References: <001601c41db7$aa0a02e0$0100000a@p667> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Spam-DCC: : mailhost.tue.nl 1074; Body=1 Fuz1=1 Fuz2=1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 735 Lines: 16 On Fri, Apr 09, 2004 at 01:38:51PM +0200, Szakacsits Szabolcs wrote: > > TODO.ntfsprogs conatins the following TODO item under mkntfs: > > - We don't know what the real last sector is, thus we mark the volume > > dirty and the subsequent chkdsk (which will happen on reboot into > > Windows automatically) recreates the backup boot sector if the Linux > > kernel lied to us about the number of sectors. The ioctl BLKGETSIZE64 will tell you the size (in bytes) of a block device. Andries - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/