1
0
mirror of https://github.com/bobranten/Ext4Fsd.git synced 2025-10-30 13:28:31 -05:00

Ext2Mgr adds + after fs name if it contains features not yet supported by the Windows driver, e.g EXT4+

This commit is contained in:
Bo Branten
2024-06-14 14:13:50 +02:00
parent 9a9a08c234
commit 40120e9908
8 changed files with 290 additions and 623 deletions

29
Ext2Mgr/swap.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef SWAP_H
#define SWAP_H
/* Definitions for a Linux swap header */
#define SWAP_HEADER_OFFSET 0
#define SWAP_HEADER_MAGIC_V1 "SWAP-SPACE"
#define SWAP_HEADER_MAGIC_V2 "SWAPSPACE2"
/* The following is a subset of linux/include/linux/swap.h */
union swap_header {
struct
{
char reserved[PAGE_SIZE - 10];
char magic[10];
} magic;
struct
{
char bootbits[1024]; /* Space for disklabel etc. */
unsigned int version;
unsigned int last_page;
unsigned int nr_badpages;
unsigned int padding[125];
unsigned int badpages[1];
} info;
};
#endif /* SWAP_H */