From owner-freebsd-fs@FreeBSD.ORG Sun Apr 4 08:24:33 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF61B16A4CE for ; Sun, 4 Apr 2004 08:24:33 -0700 (PDT) Received: from mail2.bluewin.ch (mail2.bluewin.ch [195.186.4.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C74643D3F for ; Sun, 4 Apr 2004 08:24:33 -0700 (PDT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (213.3.246.217) by mail2.bluewin.ch (Bluewin AG 7.0.027) id 40559C20002F9CB7 for freebsd-fs@freebsd.org; Sun, 4 Apr 2004 15:24:31 +0000 Received: from snoopy.here (localhost [127.0.0.1]) by gicco.homeip.net (8.12.9p2/8.12.9) with ESMTP id i34DOSjY000636 for ; Sun, 4 Apr 2004 15:24:28 +0200 (CEST) (envelope-from hampi@rootshell.be) Received: (from hampi@localhost) by snoopy.here (8.12.9p2/8.12.9/Submit) id i34DORoA000635 for freebsd-fs@freebsd.org; Sun, 4 Apr 2004 15:24:27 +0200 (CEST) (envelope-from hampi@rootshell.be) X-Authentication-Warning: snoopy.here: hampi set sender to hampi@rootshell.be using -f Date: Sun, 4 Apr 2004 15:24:27 +0200 From: Hanspeter Roth To: freebsd-fs@freebsd.org Message-ID: <20040404132427.GA564@gicco.homeip.net> Mail-Followup-To: freebsd-fs@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: fsck flags for ufs1 on 5.2 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Apr 2004 15:24:34 -0000 Hello, when I run fsck on a UFS1 which had been created with FreeBSD 4.x on FreeBSD 5.2 fsck reports an error and wants to fix it. Later on FreeBSD 4.9 fsck also reports an error: FREE BLK COUNT(S) WRONG IN SUPERBLOCK SALVAGE [yn] How can one make fsck on FreeBSD 5.2 tell how to treat UFS1 in order to keep FreeBSD 4.9 happy? How ought a UFS1 entry be made in /etc/fstab on the FreeBSD 5.2 in order to not disturb 4.9? -Hanspeter From owner-freebsd-fs@FreeBSD.ORG Thu Apr 8 10:42:51 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE37D16A4CE for ; Thu, 8 Apr 2004 10:42:51 -0700 (PDT) Received: from mail.tiscali.cz (stateless1.tiscali.cz [213.235.135.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E95643D2F for ; Thu, 8 Apr 2004 10:42:51 -0700 (PDT) (envelope-from hsn@netmag.cz) Received: from asura.bsd (213.235.69.113) by mail.tiscali.cz (6.7.021) id 40292FFD00EA7EE8 for freebsd-fs@freebsd.org; Thu, 8 Apr 2004 19:42:50 +0200 Received: from hsn@localhost by asura.bsd (Exim 4.30_2 FreeBSD) id 1BBdXR-0000ZJ-S5 for ; Thu, 08 Apr 2004 19:42:05 +0200 Date: Thu, 8 Apr 2004 19:42:05 +0200 From: Radim Kolar To: freebsd-fs@freebsd.org Message-ID: <20040408174205.GA2090@asura.bsd> Mail-Followup-To: freebsd-fs@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: maximum size of cylinder group superblock supported by kernel X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 17:42:51 -0000 Hi, I have started to write inode booster program. It should add new free inodes to filesystem without enlarging it. I am running out of inodes on many computers. I have found that newfs creates filesystem with cylinder group block (struct cg from fs.h) maxed to filesystem's blocksize. In my case there are only 4 free bytes, so there is no much space for increasing iused bitmap. I have read in several source code comments about `bsd can not handle larger struct cg than blocksize`. Can anybody fix kernel to support larger struct cg ? Why is hard to support any sized struct cg ? Real size is recorded in superblock.fs_csgsize field, so kernel can look in sb and load as much data as needed. Anybody have some idea what should i do with my code? I have created classes for manipulating UFS2 ondisk. I can can do easily for example inodes -> datablocks space conversion, but this is not very usefull.