Re: [s2disk] Inappropriate ioctl on /dev/snapshot

From: Pavel Machek
Date: Mon Apr 02 2012 - 06:06:35 EST


On Sun 2012-04-01 00:10:58, venom00 wrote:
> Hello, I've just switched to Linux 3.3.0 and s2disk is not working.
> The error message says:
>
> s2disk: check_free_swap failed. Reason: Inappropriate ioctl for device
> s2disk: No swap space for suspend
>
> Take a look at the attached strace log file.

Hi! If it worked on previous kernels, it is an regression and
something for rjw to track.

By chance, are you using 32bit userland on 64bit kernel?

(Rafael: Did we remove some compatibility code, recently?)

Thanks for report,
Pavel

> open("/dev/snapshot", O_RDONLY) = 4
> ioctl(4, SNAPSHOT_SET_SWAP_AREA, 0x7fff8113f9a0) = 0
> ioctl(4, 0x80083307, 0x7fff31183760) = -1 ENOTTY (Inappropriate ioctl for device)
> write(2, "s2disk: check_free_swap failed. Reason: Inappropriate ioctl for device\n", 71) = 71
> write(2, "s2disk: No swap space for suspend\n", 34) = 34
> close(4) = 0
>
> Should I move this discussion to the Linux Bug Tracker?
>
> Thank in advance!

> execve("/usr/sbin/s2disk", ["s2disk"], [/* 20 vars */]) = 0
> brk(0) = 0x23a3000
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6df2c000
> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=259913, ...}) = 0
> mmap(NULL, 259913, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fce6deec000
> close(3) = 0
> open("/usr/lib64/liblzo2.so.2", O_RDONLY) = 3
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360+\0\0\0\0\0\0@\0\0\0\0\0\0\0\210\21\2\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\32\0\31\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0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0\0\0\0u\0\0\0J\0\0\0M\0\0\0*\0\0\0000\0\0\0\0\0\0\0\32\0\0\0\0\0\0\0o\0\0\0[\0\0\0\0\0\0\0$\0\0\0\0\0\0\0j\0\0\0T\0\0\0A\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\35\0\0\0<\0\0\0!\0\0\0\0\0\0\0\0\0\0\0C\0\0\0{\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0N\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0b\0\0\0B\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\23\0\0\0d\0\0\0c\0\0\0005\0\0\0", 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=137224, ...}) = 0
> mmap(NULL, 2232520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce6daec000
> mprotect(0x7fce6db0d000, 2093056, PROT_NONE) = 0
> mmap(0x7fce6dd0c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7fce6dd0c000
> close(3) = 0
> open("/usr/lib64/libgcrypt.so.11", O_RDONLY) = 3
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\212\0\0\0\0\0\0@\0\0\0\0\0\0\0 \247\7\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\33\0\32\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\344e\7\0\0\0\0\0\344e\7\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0\0t\7\0\0\0\0\0\0t'\0\0\0\0\0\0t'\0\0\0\0\0D2\0\0\0\0\0\0x7\0\0\0\0\0\0\0\0 \0\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0\0\0\0\0\0\0\0\0\0y\0\0\0\0\0\0\0\0\0\0\0\324\0\0\0F\0\0\0\207\0\0\0\0\0\0\0\0\0\0\0\317\0\0\0\302\0\0\0\252\0\0\0-\0\0\0\0\0\0\0\0\0\0\0\332\0\0\0\0\0\0\0\0\0\0\0\201\0\0\0\247\0\0\0\0\0\0\0\310\0\0\0006\0\0\0\0\0\0\0\262\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\314\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=503264, ...}) = 0
> mmap(NULL, 2599800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce6d871000
> mprotect(0x7fce6d8e8000, 2097152, PROT_NONE) = 0
> mmap(0x7fce6dae8000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x77000) = 0x7fce6dae8000
> close(3) = 0
> open("/lib64/libc.so.6", O_RDONLY) = 3
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260!\2\0\0\0\0\0@\0\0\0\0\0\0\0\220{\30\0\0\0\0\0\0\0\0\0@\0008\0\v\0@\0E\0D\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0h\2\0\0\0\0\0\0h\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0\220N\25\0\0\0\0\0\220N\25\0\0\0\0\0\220N\25\0\0\0\0\0\34\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0X\31\30\0\0\0\0\0X\31\30\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0\30'\30\0\0\0\0\0\30'8\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0008\7\0\0\314\6\0\0\333\7\0\0\24\5\0\0\0\0\0\0\306\2\0\0\23\7\0\0\0\0\0\0;\7\0\0\235\5\0\0", 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=1608912, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6deeb000
> mmap(NULL, 3718152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce6d4e5000
> mprotect(0x7fce6d667000, 2097152, PROT_NONE) = 0
> mmap(0x7fce6d867000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x182000) = 0x7fce6d867000
> mmap(0x7fce6d86c000, 19464, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fce6d86c000
> close(3) = 0
> open("/usr/lib64/libgpg-error.so.0", O_RDONLY) = 3
> read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\t\0\0\0\0\0\0@\0\0\0\0\0\0\0\0201\0\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\31\0\30\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\264,\0\0\0\0\0\0\264,\0\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0\0.\0\0\0\0\0\0\0. \0\0\0\0\0\0. \0\0\0\0\0P\2\0\0\0\0\0\0`\2\0\0\0\0\0\0\0\0 \0\0\0\0\0\2\0\0\0\6\0\0\0000.\0\0\0\0\0\0000. \0\0\0\0\0000. \0\0\0\0\0\240\1\0\0\0\0\0\0\240\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0P\345td\4\0\0\0008+\0\0\0\0\0\0008+\0\0\0\0\0\0008+\0\0\0\0\0\0T\0\0\0\0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0\0\0\0\0\25\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\26\0\0\0\0\0\0\0\30\0\0\0\0\0\0\0CE\325\354", 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=14160, ...}) = 0
> mmap(NULL, 2109536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce6d2e1000
> mprotect(0x7fce6d2e4000, 2093056, PROT_NONE) = 0
> mmap(0x7fce6d4e3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fce6d4e3000
> close(3) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6deea000
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6dee9000
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6dee8000
> arch_prctl(ARCH_SET_FS, 0x7fce6dee9700) = 0
> mprotect(0x7fce6d4e3000, 4096, PROT_READ) = 0
> mprotect(0x7fce6d867000, 16384, PROT_READ) = 0
> mprotect(0x7fce6dae8000, 4096, PROT_READ) = 0
> mprotect(0x7fce6dd0c000, 4096, PROT_READ) = 0
> mprotect(0x608000, 4096, PROT_READ) = 0
> mprotect(0x7fce6df2d000, 4096, PROT_READ) = 0
> munmap(0x7fce6deec000, 259913) = 0
> brk(0) = 0x23a3000
> brk(0x23c4000) = 0x23c4000
> open("/dev/null", O_RDWR) = 3
> close(3) = 0
> stat("/etc/suspend.conf", {st_mode=S_IFREG|0644, st_size=192, ...}) = 0
> open("/etc/suspend.conf", O_RDONLY) = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=192, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6df2b000
> read(3, "snapshot device = /dev/snapshot\nresume device = /dev/gaia/overflow\n#image size = 350000000\n#suspend loglevel = 2\ncompute checksum = y\ncompress = y\n#encrypt = y\n#early writeout = y\n#splash = y\n", 4096) = 192
> read(3, "", 4096) = 0
> close(3) = 0
> munmap(0x7fce6df2b000, 4096) = 0
> mmap(NULL, 278528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6dea4000
> mlockall(MCL_CURRENT|MCL_FUTURE) = 0
> getpid() = 15500
> mount("none", "/proc/15500", "tmpfs", 0, NULL) = 0
> stat("/dev/gaia/overflow", {st_mode=S_IFBLK|0600, st_rdev=makedev(253, 2), ...}) = 0
> chdir("/proc/15500") = 0
> mknod("resume", S_IFBLK|0600, makedev(253, 2)) = 0
> open("resume", O_RDWR) = 3
> stat("/dev/snapshot", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 231), ...}) = 0
> open("/dev/snapshot", O_RDONLY) = 4
> ioctl(4, SNAPSHOT_SET_SWAP_AREA, 0x7fff311839c0) = 0
> open("/dev/console", O_RDONLY) = 5
> ioctl(5, KDGKBTYPE, 0x7fff31183a1c) = 0
> ioctl(5, TIOCLINUX, 0x7fff311839d0) = 0
> ioctl(5, VT_GETSTATE, 0x7fff31183a10) = 0
> ioctl(5, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7fff31183a18) = 0
> close(5) = 0
> open("/dev/tty8", O_RDWR) = 5
> ioctl(5, VT_ACTIVATE, 0x8) = 0
> ioctl(5, VT_WAITACTIVE, 0x8) = 0
> write(5, "\33[H\33[J", 6) = 6
> dup2(5, 0) = 0
> dup2(5, 1) = 1
> dup2(5, 2) = 2
> ioctl(5, TIOCLINUX, 0x7fff311839d0) = 0
> open("/dev/console", O_RDONLY) = 6
> ioctl(6, KDGKBTYPE, 0x7fff31183a1c) = 0
> ioctl(6, VT_GETSTATE, 0x7fff31183a10) = 0
> close(6) = 0
> open("/dev/tty8", O_RDWR) = 6
> ioctl(6, VIDIOC_RESERVED or VT_GETMODE, 0x7fff311839d0) = 0
> rt_sigaction(SIGUSR1, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7fce6d51ab80}, NULL, 8) = 0
> ioctl(6, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7fff311839d0) = 0
> stat("/proc/sys/kernel/printk", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> open("/proc/sys/kernel/printk", O_RDWR) = 7
> fstat(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6df2b000
> lseek(7, 0, SEEK_SET) = 0
> read(7, "1\t4\t1\t7\n", 1024) = 8
> lseek(7, 8, SEEK_SET) = 8
> lseek(7, -8, SEEK_CUR) = 0
> write(7, "1\n", 2) = 2
> open("/proc/sys/vm/swappiness", O_RDWR) = 8
> fstat(8, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce6df2a000
> lseek(8, 0, SEEK_SET) = 0
> read(8, "60\n", 1024) = 3
> lseek(8, 3, SEEK_SET) = 3
> lseek(8, -3, SEEK_CUR) = 0
> write(8, "100\n", 4) = 4
> sync() = 0
> setrlimit(RLIMIT_NOFILE, {rlim_cur=0, rlim_max=0}) = 0
> setrlimit(RLIMIT_NPROC, {rlim_cur=0, rlim_max=0}) = 0
> setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
> ioctl(4, 0x80083307, 0x7fff31183760) = -1 ENOTTY (Inappropriate ioctl for device)
> write(2, "s2disk: check_free_swap failed. Reason: Inappropriate ioctl for device\n", 71) = 71
> write(2, "s2disk: No swap space for suspend\n", 34) = 34
> lseek(7, 0, SEEK_SET) = 0
> write(7, "1\n", 2) = 2
> close(7) = 0
> munmap(0x7fce6df2b000, 4096) = 0
> lseek(8, 0, SEEK_SET) = 0
> write(8, "60\n", 3) = 3
> close(8) = 0
> munmap(0x7fce6df2a000, 4096) = 0
> ioctl(6, VIDIOC_ENUM_FMT or VT_SETMODE, 0x609ba8) = 0
> close(6) = 0
> ioctl(5, VT_ACTIVATE, 0x7) = 0
> ioctl(5, VT_WAITACTIVE, 0x7) = 0
> ioctl(5, TIOCLINUX, 0x7fff311839d0) = 0
> close(5) = 0
> close(4) = 0
> close(3) = 0
> chdir("/") = 0
> umount("/proc/15500", 0) = 0
> munmap(0x7fce6dea4000, 278528) = 0
> exit_group(28) = ?


--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/