search for: enotty

Displaying 20 results from an estimated 163 matches for "enotty".

2002 Jan 27
1
Strange read_passphrase behaviour ?
Hi, I'm sorry if this has already come up on the list, I did a quick search of the archive and didn't notice it. I noticed IMHO strange behavior in read_passphrase: If readpassphrase returns NULL and sets errno to ENOTTY, then read_passphrase returns an empty passphrase to the caller instead of error, now what happens with password authentication is that if readpassphrase fails every time then ssh sends 3 empty passwords to the server. Is this the expected behaviour ? -Jarno -- Jarno Huuskonen <Jarno.Huuskon...
2019 Dec 11
0
[PATCH 15/24] compat_ioctl: scsi: move ioctl handling into drivers
...*p = (void __user *)arg; int error; SCSI_LOG_IOCTL(1, sd_printk(KERN_INFO, sdkp, "sd_ioctl: disk=%s, " @@ -1507,9 +1506,6 @@ static int sd_ioctl(struct block_device *bdev, fmode_t mode, break; default: error = scsi_cmd_blk_ioctl(bdev, mode, cmd, p); - if (error != -ENOTTY) - break; - error = scsi_ioctl(sdp, cmd, p); break; } out: @@ -1691,39 +1687,31 @@ static void sd_rescan(struct device *dev) revalidate_disk(sdkp->disk); } +static int sd_ioctl(struct block_device *bdev, fmode_t mode, + unsigned int cmd, unsigned long arg) +{ + void __user...
2019 Dec 11
3
[PATCH 00/24] block, scsi: final compat_ioctl cleanup
Hi Jens, James and Martin, This series concludes the work I did for linux-5.5 on the compat_ioctl() cleanup, killing off fs/compat_ioctl.c and block/compat_ioctl.c by moving everything into drivers. Overall this would be a reduction both in complexity and line count, but as I'm also adding documentation the overall number of lines increases in the end. My plan was originally to keep the
2020 Jan 02
1
[PATCH v3 13/22] compat_ioctl: scsi: move ioctl handling into drivers
...*p = (void __user *)arg; int error; SCSI_LOG_IOCTL(1, sd_printk(KERN_INFO, sdkp, "sd_ioctl: disk=%s, " @@ -1507,9 +1506,6 @@ static int sd_ioctl(struct block_device *bdev, fmode_t mode, break; default: error = scsi_cmd_blk_ioctl(bdev, mode, cmd, p); - if (error != -ENOTTY) - break; - error = scsi_ioctl(sdp, cmd, p); break; } out: @@ -1691,39 +1687,31 @@ static void sd_rescan(struct device *dev) revalidate_disk(sdkp->disk); } +static int sd_ioctl(struct block_device *bdev, fmode_t mode, + unsigned int cmd, unsigned long arg) +{ + void __user...
2013 Jun 12
9
Test report for xen-unstable and qemu-xen
Dom0: Wheezy 64 bit with kernel from package linux-image-3.2.0-4-amd64 version 3.2.41-2+deb7u2, package blktap-dkms and all dependency packages for xen, spice and usb redirection. Seabios 1.7.2-3 and latest spice and usbredir compiled from debian unstable sources. ------------------------- /etc/modules ------------ loop max_loop=64 xenfs xen-evtchn blktap ------------------------- git clone
2015 Jun 09
4
File copy operation blocks on Samba share
...or almost all of the files, however the perl script always blocks in uninterruptable sleep on one file in particular. If I strace it, I see this result: open("/mnt/Share/file.odt", O_RDONLY) = 7 ioctl(7, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fff3cdd9f20) = -1 ENOTTY (Inappropriate ioctl for device) lseek(7, 0, SEEK_CUR) = 0 fstat(7, {st_mode=S_IFREG|0644, st_size=131018, ...}) = 0 fcntl(7, F_SETFD, FD_CLOEXEC) = 0 open("/usr/local/share/dest.odt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 8 ioctl(8, SNDCTL_TMR_TIMEBASE or SNDRV_TI...
2020 Apr 23
4
[PATCH] virtio-blk: handle block_device_operations callbacks after hot unplug
...00644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -300,6 +300,10 @@ static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) { struct virtio_blk *vblk = bd->bd_disk->private_data; + /* Driver instance has been removed */ + if (!vblk) + return -ENOTTY; + /* see if the host passed in geometry config */ if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { virtio_cread(vblk->vdev, struct virtio_blk_config, @@ -835,6 +839,7 @@ static void virtblk_remove(struct virtio_device *vdev) vdev->config->reset(vdev); refc = kr...
2020 Apr 23
4
[PATCH] virtio-blk: handle block_device_operations callbacks after hot unplug
...00644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -300,6 +300,10 @@ static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) { struct virtio_blk *vblk = bd->bd_disk->private_data; + /* Driver instance has been removed */ + if (!vblk) + return -ENOTTY; + /* see if the host passed in geometry config */ if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { virtio_cread(vblk->vdev, struct virtio_blk_config, @@ -835,6 +839,7 @@ static void virtblk_remove(struct virtio_device *vdev) vdev->config->reset(vdev); refc = kr...
2015 Nov 30
1
Re: "Failed to start domain..."
..."\343(\317\376\241\r\36\306\6\344T\302\217mdTt\23\326\225\330'\375$\7\215\307\0301\211\226\210\\\261x\277\245\342\3149\206R\223@\26\233M\345|\320\337 x\336\325\370'\17w~", 60) = 60 25533 ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffe60de40e0) = -1 ENOTTY (Inappropriate ioctl for device) 25533 fcntl(0, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) 25533 fcntl(0, F_SETFL, O_RDWR) = 0 25533 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffe60de40e0) = -1 ENOTTY (Inappropriate ioctl for device) 25533 fcntl(1, F_GETFL) = 0x...
2015 Nov 25
2
"Failed to start domain..."
Sadly, I'm back with another issue. I can do a "system list --all" just fine; however, if I attempt to start the machines, I get back: maas@Bill-MAAS-cc:~$ strace -s 1024 -f -o /tmp/asdfasdf.log virsh -c vbox+ssh://gbadmin@10.20.0.1/system start PXE-client-07 error: Failed to start domain PXE-client-07 error: An error occurred, but the cause is unknown Log files on both client
2009 Jul 30
3
AIX and posix_fallocate
...PP (="Operation not supported on socket"). In this case the return code has to be checked rather than errno. When patched dovecot handles err==EOPNOTSUPP the same way like errno==EINVAL on Solaris. A note for all AIX Admins: Without APAR IZ48778: POSIX_FALLOCATE() FAILS WITH ERROR-25(ENOTTY) resp. IZ46961: POSIX_FALLOCATE() FAILS WITH ERROR-25(ENOTTY) APPLIES TO AIX 5300-06 you don't even get EOPNOTSUPP: posix_fallocate fails with NOTTY. So you have to install one of this fixes to make the patch work. Ralf -- ________________________________________________________...
2010 Jul 26
6
[PATCH] Btrfs: compressed file size ioctl
...*argp) { struct btrfs_ioctl_clone_range_args args; @@ -2034,6 +2135,8 @@ long btrfs_ioctl(struct file *file, unsigned int case BTRFS_IOC_SYNC: btrfs_sync_fs(file->f_dentry->d_sb, 1); return 0; + case BTRFS_IOC_COMPR_SIZE: + return btrfs_ioctl_compsize(file, argp); } return -ENOTTY; diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h index 424694a..a01ef1e 100644 --- a/fs/btrfs/ioctl.h +++ b/fs/btrfs/ioctl.h @@ -178,4 +178,5 @@ struct btrfs_ioctl_space_args { #define BTRFS_IOC_DEFAULT_SUBVOL _IOW(BTRFS_IOCTL_MAGIC, 19, u64) #define BTRFS_IOC_SPACE_INFO _IOWR(BTRFS_IOCTL_MAGIC,...
2015 Nov 13
0
[Bug 1860] UseDNS option ignored
...3, 0x08047ADC, 0x08047B60) = 0 20538: gettimeofday(0x08047070, 0xBFF5A870) = 0 20538: getpid() = 20538 [ 20271 ] 20538: open("/etc/resolv.conf", O_RDONLY, 0666) = 4 20538: ioctl(4, TCGETS, 0x08046F64) Err#25 ENOTTY Which makes me think this is canohost.c:get_remote_hostname(). It does a getpeername() call that is probably the xgetscoaddr call above. It then does a: if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), NULL, 0, NI_NUMERICHOST) != 0) call. This should not result in a...
2015 Jun 10
0
File copy operation blocks on Samba share
...wever the perl script always > blocks in uninterruptable sleep on one file in particular. If I strace it, I see > this result: > > open("/mnt/Share/file.odt", O_RDONLY) = 7 > ioctl(7, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fff3cdd9f20) = -1 > ENOTTY (Inappropriate ioctl for device) > lseek(7, 0, SEEK_CUR) = 0 > fstat(7, {st_mode=S_IFREG|0644, st_size=131018, ...}) = 0 > fcntl(7, F_SETFD, FD_CLOEXEC) = 0 > open("/usr/local/share/dest.odt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 8 > ioctl(8, SNDCTL...
2001 Jan 08
2
fatal: PRNG initialisation failed
...= 0 brk(0x000E8DB8) = 0 fstat64(3, 0xFFBEECD8) = 0 brk(0x000E8DB8) = 0 brk(0x000EADB8) = 0 ioctl(3, TCGETA, 0xFFBEEC64) Err#25 ENOTTY read(3, " # e n t r o p y g a".., 8192) = 1517 read(3, 0x000E79CC, 8192) = 0 fstat(-1, 0xFFBEEDE8) Err#9 EBADF fstat(-1, 0xFFBEE1B8) Err#9 EBADF Not sure that those last EBADF from fstat are referring to.....
2016 Feb 01
1
Advice on virtio, or any virtualization solution for hdparm
...0, resid=0, duration=184, info=0}) = 0 ioctl(3, HDIO_GET_IDENTITY, 0x7fffda088500) = -1 EINVAL (Invalid argument) HDIO_GET_IDENTITY failed: Invalid argument +++ exited with 22 +++ And at the host level: ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7ffd4b096d90) = -1 ENOTTY (Inappropriate ioctl for device) ioctl(3, HDIO_GET_MULTCOUNT, 0x618ef0) = -1 ENOTTY (Inappropriate ioctl for device) ioctl(3, SG_IO, {'S', SG_DXFER_FROM_DEV, cmd[16]=[85, 08, 0e, 00, 00, 00, 01, 00, 00, 00, 00, 00, 00, 40, ec, 00], mx_sb_len=32, iovec_count=0, dxfer_len=512, timeout=15000,...
2012 Nov 21
1
Conntrackd - fail at startup.
...1.local", ...}) = 0 umask(0177) = 022 brk(0) = 0x1c57000 brk(0x1c78000) = 0x1c78000 open("/etc/conntrackd/conntrackd.conf", O_RDONLY) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff09f67e50) = -1 ENOTTY (Inappropriate ioctl for device) fstat(3, {st_mode=S_IFREG|0644, st_size=13618, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa29ca4c000 read(3, "#\n# Synchronizer settings\n#\nSync"..., 8192) = 8192 read(3, "# since the daemon may keep some...
2004 Jan 07
1
openssh 3.7.1p2 fault on solaris 9 for sparc when built as 64-bit
...= 1000 [1000] 8132: open("/etc/default/login", O_RDONLY) = 7 8132: fstat(7, 0xFFFFFFFF7FFFD060) = 0 8132: fstat(7, 0xFFFFFFFF7FFFCF30) = 0 8132: ioctl(7, TCGETA, 0xFFFFFFFF7FFFCF9C) Err#25 ENOTTY 8132: read(7, " # i d e n t\t " @ ( # )".., 8192) = 2010 8132: read(7, 0x100287C14, 8192) = 0 8132: lseek(7, 0, SEEK_CUR) = 2010 8132: close(7) = 0 8132: Incurred fault #5, FLTACCE...
2003 Sep 25
2
sshd (openssh 3.7.1p1) dies during login on Solaris 8 system with SRM installed
...sz=1462 1061: at = Sep 25 10:52:54 NZST 2003 [ 1064443974 ] 1061: mt = Sep 25 10:45:07 NZST 2003 [ 1064443507 ] 1061: ct = Sep 25 10:45:07 NZST 2003 [ 1064443507 ] 1061: bsz=8192 blks=4 fs=ufs 1061: ioctl(9, 0x00005401, 0xFFBEE5BC) Err#25 ENOTTY 1061: read(9, 0x00160CCC, 8192) = 1462 1061: 0x00160CCC: " r o o t : x : 0 : 1 : S".. 1061: llseek(9, 0xFFFFFFFFFFFFFFBF, 1) = 1397 1061: close(9) = 0 1061: sys#177(0x00000079, 0x000023B8, 0x001608C...
2004 Feb 24
4
Pam trouble
...81: fstat64(15, 0xFFBFE2D8) = 0 29981: brk(0x00081460) = 0 29981: brk(0x00083460) = 0 29981: fstat64(15, 0xFFBFE180) = 0 29981: ioctl(15, TCGETA, 0xFFBFE264) Err#25 ENOTTY 29981: read(15, " r o o t : x : 0 : 1 : Z".., 8192) = 710 29981: read(15, 0x00080594, 8192) = 0 29981: llseek(15, 0, SEEK_CUR) = 710 29981: close(15) = 0 29981: stat("/usr/lib/nss_ldap.so.1&quo...