From owner-freebsd-current@FreeBSD.ORG Wed May 26 22:52:18 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 321BC106567F for ; Wed, 26 May 2010 22:52:18 +0000 (UTC) (envelope-from marcelorossi@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id E08D88FC21 for ; Wed, 26 May 2010 22:52:17 +0000 (UTC) Received: by qyk11 with SMTP id 11so10342455qyk.13 for ; Wed, 26 May 2010 15:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=YgcVfk6peu2omgbfhWYI7iq+bjty5r/hRF6kcjshobg=; b=a5QEwwgKhyiyQs1omnYEVfqLfIQG972wGQD7yBDlgJ5dAU/xZKMIXbkwfzm5ilpk5d ITyaL1R2X//0HWnUNZ5GxjBtCn5EnghJos1tnnW15kGjzU1BZus5DBtwIEFWDtLjOZnq 1ganzhwMN1+U7QNIjSXJAgNVLz8J/Zoegj/9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=LOs7qtlZNTWbzePMs1BH57CqVH0QMFfuOzmrdfuPIpIgIEt8cjXAHHmVlpvKNPJ6Aj TLOug7Ehby3ZG3Etx1yzFqwKu03cbpgsn0bGFHZcHmXdP/ctir1UzKY8wS87jI5cIOLK +J1Mnka+3sXVEFIMKRNodM7ggkuRoosWwHskc= MIME-Version: 1.0 Received: by 10.224.116.75 with SMTP id l11mr5189246qaq.300.1274914337325; Wed, 26 May 2010 15:52:17 -0700 (PDT) Received: by 10.229.80.6 with HTTP; Wed, 26 May 2010 15:52:17 -0700 (PDT) In-Reply-To: References: Date: Wed, 26 May 2010 19:52:17 -0300 Message-ID: From: "Marcelo/Porks" To: Jeff Roberson Content-Type: text/plain; charset=ISO-8859-1 Cc: current@freebsd.org Subject: Re: SUJ Changes 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: Wed, 26 May 2010 22:52:18 -0000 On 5/25/10, Marcelo/Porks wrote: > Hi! I tested the r208241 and it's seems to be ok but this calls my > atention to other thing: Could I disable de SU when the SUJ is > enabled? > > I did some tests and seems that I can do this (logs bellow). > > But will SUJ work properly with SU disabled? Hi guys. I'm not sure if I could call this a problem but I can disable SU when SUJ is enabled, so SUJ will remain enabled and SU will be disabled. #tunefs -j enable /dev/device #tunefs -n disable /dev/device I did a patch for sbin/tunefs/tunefs.c that disable SUJ when the user disable SU. Maybe this will be useful for some of you. Thanks. Index: sbin/tunefs/tunefs.c =================================================================== --- sbin/tunefs/tunefs.c (revision 208580) +++ sbin/tunefs/tunefs.c (working copy) @@ -460,6 +460,14 @@ if ((~sblock.fs_flags & FS_DOSOFTDEP) == FS_DOSOFTDEP) warnx("%s remains unchanged as disabled", name); else { + /* also disable SUJ */ + if ((sblock.fs_flags & FS_SUJ) == FS_SUJ) { + warnx("soft updates journaling will be disabled too"); + journal_clear(); + sblock.fs_flags &= ~FS_SUJ; + sblock.fs_sujfree = 0; + warnx("remove .sujournal to reclaim space"); + } sblock.fs_flags &= ~FS_DOSOFTDEP; warnx("%s cleared", name); } -- Marcelo Rossi "This e-mail is provided "AS IS" with no warranties, and confers no rights."