chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libvolume_id: add parameter 'size' to all probe functions
[elogind.git]
/
extras
/
volume_id
/
lib
/
linux_swap.c
diff --git
a/extras/volume_id/lib/linux_swap.c
b/extras/volume_id/lib/linux_swap.c
index b63f1e6c002b622dc05f5366f20ec87039ef5d85..21cb2bce8c1ea30b824a9c466974c47fb8c5ac4a 100644
(file)
--- a/
extras/volume_id/lib/linux_swap.c
+++ b/
extras/volume_id/lib/linux_swap.c
@@
-37,12
+37,12
@@
static struct swap_header_v1_2 {
#define LARGEST_PAGESIZE 0x4000
#define LARGEST_PAGESIZE 0x4000
-int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off)
+int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off
, uint64_t size
)
{
const uint8_t *buf;
unsigned int page;
{
const uint8_t *buf;
unsigned int page;
-
dbg
("probing at offset 0x%llx", (unsigned long long) off);
+
info
("probing at offset 0x%llx", (unsigned long long) off);
/* the swap signature is at the end of the PAGE_SIZE */
for (page = 0x1000; page <= LARGEST_PAGESIZE; page <<= 1) {
/* the swap signature is at the end of the PAGE_SIZE */
for (page = 0x1000; page <= LARGEST_PAGESIZE; page <<= 1) {