From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from syrinx.knorrie.org ([82.94.188.77]:49970 "EHLO syrinx.knorrie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbdITUp0 (ORCPT ); Wed, 20 Sep 2017 16:45:26 -0400 Subject: Re: RFC: Btrfs does not store checksum type? Only size? O_o To: Timofey Titovets , linux-btrfs References: From: Hans van Kranenburg Message-ID: Date: Wed, 20 Sep 2017 22:45:25 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 09/20/2017 10:31 PM, Timofey Titovets wrote: > I was reading the kernel code and docs and didn't find anything about > some info like "cheksum type" as btrfs have for compression code. > (I only found some silent "hack" in btrfs-progs, that print "checksum > type", but get "checksum size") > > If i understood all correctly btrfs only store checksum size, i.e. 4 > for current CRC32C. The checksum type is set in the superblock: csum_type 0 (crc32c) csum_size 4 [...] So in the current design, you probably could have different checksum types, but you will have to choose one of them when creating a filesystem. -- Hans van Kranenburg