From owner-freebsd-current@FreeBSD.ORG Tue Sep 28 12:10:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACB1E16A4CE for ; Tue, 28 Sep 2004 12:10:53 +0000 (GMT) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id C456C43D41 for ; Tue, 28 Sep 2004 12:10:50 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.1/8.13.1) with ESMTP id i8SCA6ea060943 for ; Tue, 28 Sep 2004 14:10:06 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <4159549E.8080008@fer.hr> Date: Tue, 28 Sep 2004 14:10:06 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Filesystem on >8k sectors X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 28 Sep 2004 12:10:53 -0000 If I create a device with ggatel that has sector size > 8192, newfs fails thusly (16k sectors): # newfs /dev/ggate0 /dev/ggate0: 10.0MB (20480 sectors) block size 16384, fragment size 16384 using 3 cylinder groups of 4.00MB, 256 blks, 64 inodes. newfs: can't read old UFS1 superblock: read error from block device: Invalid argument This works fine with any lower sized sectors (including, e.g. 8k sectors and 1-byte sectors). It seems that newfs tries to make a read request that is not a multiple of block size. Note also: - that there's no "old UFS1 superblock" on the device, as it contains junk. - that newfs thinks there are 20480 sectors (assumes sectors are 512-byte sized), but with 16k sectors there are 640 sectors. - fiddling with newfs options doesn't help. Is it only newfs or UFS/FFS can't work on devices with large sector sizes? This isn't ranting for the sake of itself, but I have a neat idea for a ggatel-like utility that would work optimaly with huge sector sizes. :)