public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* nodatacsum broken?
@ 2009-11-16 16:22 Steven Pratt
  2009-11-16 16:27 ` Chris Mason
  2009-11-16 17:23 ` Chris Mason
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Pratt @ 2009-11-16 16:22 UTC (permalink / raw)
  To: linux-btrfs

Did we break the ability to run with -o nodatacsum somewhere along the 
way? I had not run just this option in a while (usually doing nodatacow 
which implies nodatacsum).  Just did a full run with just nodatacsum and 
it looks like we still did csums.

from proc/mounts:

/dev/ffsbdev1 on /mnt/ffsb1 type btrfs (rw,nodatacsum)

but profile:

samples % app name symbol name

1664460  15.3103  vmlinux-2.6.31-autokern1 copy_user_generic_unrolled
1514349  13.9295  vmlinux-2.6.31-autokern1 crc32c
606147    5.5756  vmlinux-2.6.31-autokern1 rb_get_reader_page
562936    5.1781  vmlinux-2.6.31-autokern1 mutex_spin_on_owner
433405    3.9866  vmlinux-2.6.31-autokern1 ring_buffer_consume


This was for a sequential read test on the unstable tree from 11-12.

Steve







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nodatacsum broken?
  2009-11-16 16:22 nodatacsum broken? Steven Pratt
@ 2009-11-16 16:27 ` Chris Mason
  2009-11-16 16:51   ` Steven Pratt
  2009-11-16 17:23 ` Chris Mason
  1 sibling, 1 reply; 5+ messages in thread
From: Chris Mason @ 2009-11-16 16:27 UTC (permalink / raw)
  To: Steven Pratt; +Cc: linux-btrfs

On Mon, Nov 16, 2009 at 10:22:59AM -0600, Steven Pratt wrote:
> Did we break the ability to run with -o nodatacsum somewhere along
> the way? I had not run just this option in a while (usually doing
> nodatacow which implies nodatacsum).  Just did a full run with just
> nodatacsum and it looks like we still did csums.

Were the files created without nodatasum?  The sum option actually ends
up stored in the file itself, so if you're reading from an old dataset
you'll still sum.

-chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nodatacsum broken?
  2009-11-16 16:27 ` Chris Mason
@ 2009-11-16 16:51   ` Steven Pratt
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Pratt @ 2009-11-16 16:51 UTC (permalink / raw)
  To: Chris Mason, Steven Pratt, linux-btrfs

Chris Mason wrote:
> On Mon, Nov 16, 2009 at 10:22:59AM -0600, Steven Pratt wrote:
>   
>> Did we break the ability to run with -o nodatacsum somewhere along
>> the way? I had not run just this option in a while (usually doing
>> nodatacow which implies nodatacsum).  Just did a full run with just
>> nodatacsum and it looks like we still did csums.
>>     
>
> Were the files created without nodatasum?  The sum option actually ends
> up stored in the file itself, so if you're reading from an old dataset
> you'll still sum.
>   
No, fresh mkfs and all mounts used nodatacsum.

Steve

> -chris
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nodatacsum broken?
  2009-11-16 16:22 nodatacsum broken? Steven Pratt
  2009-11-16 16:27 ` Chris Mason
@ 2009-11-16 17:23 ` Chris Mason
  2009-11-16 17:40   ` Steven Pratt
  1 sibling, 1 reply; 5+ messages in thread
From: Chris Mason @ 2009-11-16 17:23 UTC (permalink / raw)
  To: Steven Pratt; +Cc: linux-btrfs

On Mon, Nov 16, 2009 at 10:22:59AM -0600, Steven Pratt wrote:
> Did we break the ability to run with -o nodatacsum somewhere along
> the way? I had not run just this option in a while (usually doing
> nodatacow which implies nodatacsum).  Just did a full run with just
> nodatacsum and it looks like we still did csums.
> 
> from proc/mounts:
> 
> /dev/ffsbdev1 on /mnt/ffsb1 type btrfs (rw,nodatacsum)
                                         ^^^^^^^^^^^^^^

This should be mount -o nodatasum.

2.6.33 will have a patch from Sage to fail mounting when we don't
recognize the option instead of silently pretending it worked.  I just
didn't want to introduce it this late in the 2.6.32-rc series.

-chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nodatacsum broken?
  2009-11-16 17:23 ` Chris Mason
@ 2009-11-16 17:40   ` Steven Pratt
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Pratt @ 2009-11-16 17:40 UTC (permalink / raw)
  To: Chris Mason, linux-btrfs

Chris Mason wrote:
> On Mon, Nov 16, 2009 at 10:22:59AM -0600, Steven Pratt wrote:
>   
>> Did we break the ability to run with -o nodatacsum somewhere along
>> the way? I had not run just this option in a while (usually doing
>> nodatacow which implies nodatacsum).  Just did a full run with just
>> nodatacsum and it looks like we still did csums.
>>
>> from proc/mounts:
>>
>> /dev/ffsbdev1 on /mnt/ffsb1 type btrfs (rw,nodatacsum)
>>     
>                                          ^^^^^^^^^^^^^^
>
> This should be mount -o nodatasum.
>
>   
Oops. My bad. Re-running.

> 2.6.33 will have a patch from Sage to fail mounting when we don't
> recognize the option instead of silently pretending it worked.  I just
> didn't want to introduce it this late in the 2.6.32-rc series.
>   
Good.

Steve


> -chris
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-16 17:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 16:22 nodatacsum broken? Steven Pratt
2009-11-16 16:27 ` Chris Mason
2009-11-16 16:51   ` Steven Pratt
2009-11-16 17:23 ` Chris Mason
2009-11-16 17:40   ` Steven Pratt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox