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: recognize swap partitions with a tuxonice hibernate image
[elogind.git]
/
extras
/
volume_id
/
lib
/
sysv.c
diff --git
a/extras/volume_id/lib/sysv.c
b/extras/volume_id/lib/sysv.c
index 6e0ed046f0b357b6f323c3d6683a4a219e79554a..ba37c4d0a61988631197a03b9c2518c252552757 100644
(file)
--- a/
extras/volume_id/lib/sysv.c
+++ b/
extras/volume_id/lib/sysv.c
@@
-89,13
+89,13
@@
struct xenix_super {
#define XENIX_MAGIC 0x2b5544
#define SYSV_MAX_BLOCKSIZE 0x800
#define XENIX_MAGIC 0x2b5544
#define SYSV_MAX_BLOCKSIZE 0x800
-int volume_id_probe_sysv(struct volume_id *id, uint64_t off)
+int volume_id_probe_sysv(struct volume_id *id, uint64_t off
, uint64_t size
)
{
struct sysv_super *vs;
struct xenix_super *xs;
unsigned int boff;
{
struct sysv_super *vs;
struct xenix_super *xs;
unsigned int boff;
- info("probing at offset 0x%llx", (unsigned long long) off);
+ info("probing at offset 0x%llx
\n
", (unsigned long long) off);
for (boff = 0x200; boff <= SYSV_MAX_BLOCKSIZE; boff <<= 1) {
vs = (struct sysv_super *)
for (boff = 0x200; boff <= SYSV_MAX_BLOCKSIZE; boff <<= 1) {
vs = (struct sysv_super *)