From owner-freebsd-current@FreeBSD.ORG Tue Oct 30 20:34:02 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FD1A16A417 for ; Tue, 30 Oct 2007 20:34:02 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: from corpmail.itlegion.ru (corpmail.itlegion.ru [84.21.226.211]) by mx1.freebsd.org (Postfix) with SMTP id ACBAA13C4C5 for ; Tue, 30 Oct 2007 20:33:50 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: (qmail 3489 invoked from network); 30 Oct 2007 23:33:44 +0300 Received: from unknown (HELO Artem) (192.168.0.12) by 84.21.226.211 with SMTP; 30 Oct 2007 23:33:44 +0300 X-AntiVirus: Checked by Dr.Web [version: 4.44, engine: 4.44.0.09170, virus records: 252594, updated: 30.10.2007] Message-ID: <001101c81b34$283e4cc0$0c00a8c0@Artem> From: "Artem Kuchin" To: Date: Tue, 30 Oct 2007 23:33:32 +0300 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Subject: wrong sector count in dumpfs -m newfs -s arg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 20:34:02 -0000 Here it is /dev/twed0s1f is 199 636 542 1K blocks in size osiris#dumpfs -m /dev/twed0s1f # newfs command for /dev/twed0s1f (/dev/twed0s1f) newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o time -s 103062480 /dev/twed0s1f osiris# geom disk list Geom name: twed0 Providers: 1. Name: twed0 Mediasize: 240066101248 (224G) Sectorsize: 512 Mode: r5w5e6 fwsectors: 63 fwheads: 255 As you see the sector size is 512. newfs from dumpfs -s arg says this fs is 103062480 sectors long 512*103062480= 52 767 989 760 bytes or 51 531 240 in 1K blocks And i thought it should be exactly he size of the filesystem. Any idea what's up with this? -- Artem