]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/crc32: don't require to modify GPT header
authorKarel Zak <kzak@redhat.com>
Tue, 22 Sep 2015 13:26:36 +0000 (15:26 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 24 Sep 2015 07:26:42 +0000 (09:26 +0200)
commit7020de0be8b5fa0cdb6a8feee3f64f5384b18f06
tree9dd9ef9c801e55c6b99cde0a3cbace73d6cbda8e
parentaab9be66c4a2525a6ca3b2b7a47b8ad2a54aa659
lib/crc32: don't require to modify GPT header

This patch introduces smart crc32 function that is able to exclude
specified. The advantage is that we does not have to modify GPT header
(set the current in-header crc field to zero) when we count crc32.

This allows to keep GPT header in read-only buffers and simplify code.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/crc32.h
lib/crc32.c
libblkid/src/partitions/gpt.c
libfdisk/src/gpt.c