User Tools

Site Tools


btrfs

This is an old revision of the document!


BTRFS

finding out resume offset for swap hibernation in 32bit machine (i386)

The code “btrfs_map_physical.c” for finding out the swap file offset for hibernation resume doesn't work on 32bits.

Change:

	fd = open(argv[optind], O_RDONLY);

For:

fd = open(argv[optind], O_RDONLY |O_LARGEFILE );

and compile using the following command line:

gcc -O2 -o btrfs_map_physical -D_FILE_OFFSET_BITS=64 btrfs_map_physical.c
btrfs.1652683319.txt.gz · Last modified: 2022/05/16 01:41 by 95.217.195.123