[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] nbd client crashes



strace of the child (client) process:

open("/dev/nd0", O_RDWR|O_LARGEFILE)    = 3
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(9999),
sin_addr=inet_addr("10.10.10.2")}, 16) = 0
setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(4, "NBDMAGIC", 8)                  = 8
read(4, "\0\0B\2\201\206\22S", 8)       = 8
read(4, "\0\0\0\0\6\32\200\0", 8)       = 8
read(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"..., 128)
= 128
ioctl(3, NBD_SET_BLKSIZE, 0x400)        = 0
ioctl(3, NBD_SET_SIZE_BLOCKS, 0x186a0)  = 0
ioctl(3, NBD_CLEAR_SOCK, 0x186a0)       = -1 EINVAL (Invalid argument)
close(4)                                = 0
close(3)                                = 0
write(2, "Error: ioctl(nbd_fd, NBD_CLEAR_S"..., 72Error: ioctl(nbd_fd,
NBD_CLEAR_SOCK) failed, aborting: Invalid argument
) = 72
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({30, 0},





Reply to: