search for: btrfs_crc32_size

Displaying 3 results from an estimated 3 matches for "btrfs_crc32_size".

2013 Feb 23
4
Changing node & leaf size on live partition.
Hi, Question is pretty simple: "How to change node size and leaf size on previously created partition?" Now, I know what most people will say: "you should''ve be smarter while typing mkfs.btrfs". Well, I''m intending to convert in place ext4 partition but there seems to be no option for leaf and node size in this tool. If it''s not possible I guess
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...ret != sectorsize) + goto fail; + + super = (struct btrfs_super_block *)buf; + BUG_ON(btrfs_super_bytenr(super) != old_bytenr); + btrfs_set_super_bytenr(super, BTRFS_SUPER_INFO_OFFSET); + + crc = crc32c(crc, buf + BTRFS_CSUM_SIZE, len); + crc = ~cpu_to_le32(crc); + memcpy(super->csum, &crc, BTRFS_CRC32_SIZE); + + ret = pwrite(fd, buf, sectorsize, BTRFS_SUPER_INFO_OFFSET); + if (ret < 0) + goto fail; + /* How to handle this case? */ + BUG_ON(ret != sectorsize); + + ret = fsync(fd); + if (ret) + goto fail; + + memset(buf, 0, sectorsize); + for (bytenr = 0; bytenr < BTRFS_SUPER_INFO_OFFSET; ) { +...
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi, The following patches add support for ext4 and btrfs to PV-GRUB. These patches are taken nearly verbatim from those provided by Fedora and Gentoo. We''ve been using these patches for the PV-GRUB images available in EC2 for some time now with no problems. Changes from v1: - Makefile has been changed to check the exit code from patch - The btrfs patch has been rebased to apply