Bug 32173

Summary: tunefs -n lies
Product: Base System Reporter: Ben Rosengart <ben+gnats>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Ben Rosengart 2001-11-21 20:20:00 UTC
"tunefs -n enable foo" prints "soft updates set" in several cases even
when it does not succeed.

narcissus# tunefs -n enable /backup /more
tunefs: soft updates set
usage: tunefs [-A] [-a maxcontig] [-d rotdelay] [-e maxbpg] [-f avgfilesize]
              [-m minfree] [-p] [-n enable | disable] [-o space | time]
              [-s filesperdir] [special | filesystem]

How-To-Repeat: 
Run "tunefs -n enable /foo" when /foo is mounted.
Run "tunefs -n enable /foo /bar".
Comment 1 Maxim Konovalov 2001-11-21 22:15:54 UTC
This described in BUGS section tunefs.8:

> This program should work on mounted and active file systems.
> Because the super-block is not kept in the buffer cache, the
> changes will only take effect if the program is run on dismounted
> file systems.

-- 
Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
Comment 2 Ben Rosengart 2001-11-21 22:18:08 UTC
The bug I am reporting is that tunefs prints "tunefs: soft updates
set" even when it hasn't done anything.

On Thu, Nov 22, 2001 at 01:15:54AM +0300, Maxim Konovalov wrote:
> 
> This described in BUGS section tunefs.8:
> 
> > This program should work on mounted and active file systems.
> > Because the super-block is not kept in the buffer cache, the
> > changes will only take effect if the program is run on dismounted
> > file systems.
> 
> -- 
> Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
> phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
> 

-- 
 Ben

"When I say 'literally', I literally mean 'literally'."
Comment 3 setantae 2001-11-22 14:08:24 UTC
This PR can be closed.

Duplicate of bin/31199, which has patches.

Ceri
Comment 4 dwmalone freebsd_committer freebsd_triage 2001-11-22 14:27:51 UTC
State Changed
From-To: open->closed

As Ceri says: Duplicate of bin/31199, which has patches.