[klibc] [PATCH] btrfs support

maximilian attems max at stro.at
Sat Apr 3 13:11:14 PDT 2010


On Sat, Apr 03, 2010 at 08:33:22PM +0200, Benjamin Cama wrote:
> Hi,
> 
> As I use btrfs as root FS, I wanted fstype to be able to recognize it.
> The following patch add support for this FS.
> 
> Regards,
> benjamin

already done, is in my patch queue to hpa, see
http://git.debian.org/?p=users/maks/klibc.git;a=summary

we are still waiting on feedback of dash Maintainer due to dash sync.
http://www.zytor.com/pipermail/klibc/2010-April/002594.html
 
> +#define BTRFS_CSUM_SIZE 32
> +#define BTRFS_FSID_SIZE 16

ok hadn't given those naming, could be done in followup patch.

> +
> +	if (!memcmp(&sb->magic, BTRFS_MAGIC, sizeof(BTRFS_MAGIC)-1)) {
> +		*bytes = (unsigned long long)__le64_to_cpu(sb->total_bytes);
> +		return 1;
> +	}

why the le64_to_cpu call ?


thanks.



More information about the klibc mailing list