[Bug 409360] New: mkfs.xfs destroys file even with "-N" flag
https://bugzilla.novell.com/show_bug.cgi?id=409360 Summary: mkfs.xfs destroys file even with "-N" flag Product: openSUSE 11.0 Version: Final Platform: 32bit OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: archie@dellroad.org QAContact: qa@suse.de Found By: --- When given the "-N" flag, mkfs.xfs is supposed to print out the filesystem details but not otherwise touch anything. However, it is possible to destroy a file even when "-N" is given: $ echo foobar > somefile $ ls -l somefile -rw-r--r-- 1 archie awarix 7 Jul 15 15:13 somefile $ mkfs.xfs -N -b size=4096 -i size=2048 -s size=4096 -d file=1,name=somefile,size=100m meta-data=somefile isize=2048 agcount=4, agsize=6400 blks = sectsz=4096 attr=2 data = bsize=4096 blocks=25600, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=1440, version=2 = sectsz=4096 sunit=1 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 $ ls -l somefile -rw-r--r-- 1 archie awarix 0 Jul 15 15:15 somefile $ rpm -qf `which mkfs.xfs` xfsprogs-2.9.8-7.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409360 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |mmarek@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409360 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=409360#c1 --- Comment #1 from Michal Marek <mmarek@novell.com> 2008-07-17 05:24:58 MDT --- Created an attachment (id=228432) --> (https://bugzilla.novell.com/attachment.cgi?id=228432) tentative patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409360 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=409360#c2 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |susexfs@sgi.com --- Comment #2 from Michal Marek <mmarek@novell.com> 2008-07-17 05:28:58 MDT --- The file is truncated by libxfs_init(), if .dcreat is nonzero. Above patch sets dcread to zero if -N is given (and breaks in case the file doesn't exist...). SGI, what do you think? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409360 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409360 User bnaujok@sgi.com added comment https://bugzilla.novell.com/show_bug.cgi?id=409360#c3 Barry Naujok <bnaujok@sgi.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bnaujok@sgi.com --- Comment #3 from Barry Naujok <bnaujok@sgi.com> 2008-07-24 01:14:43 MDT --- Yep, the patch looks fine. I'll commit it to TOT here too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409360 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=409360#c4 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|susexfs@sgi.com | Resolution| |FIXED --- Comment #4 from Michal Marek <mmarek@novell.com> 2008-09-02 07:16:07 MDT --- Fixed in Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com