From: Naveen Subject: Issuing custom IOCTLs to SCSI LLD Date: Mon, 9 May 2016 09:27:22 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from plane.gmane.org ([80.91.229.3]:49041 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbcEIJaI (ORCPT ); Mon, 9 May 2016 05:30:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1azhVs-0000Ov-H1 for ceph-devel@vger.kernel.org; Mon, 09 May 2016 11:30:05 +0200 Received: from 14.141.44.130.Static-Bangalore.tcl.net.in ([14.141.44.130.Static-Bangalore.tcl.net.in]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 May 2016 11:30:04 +0200 Received: from Naveen.Chandrasekaran by 14.141.44.130.Static-Bangalore.tcl.net.in with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 May 2016 11:30:04 +0200 Sender: ceph-devel-owner@vger.kernel.org List-ID: To: ceph-devel@vger.kernel.org Hi, I'm new to ceph and trying to find if on CentOS there is a way to issue IOCTL or similar custom requests (other than fops request like OS issued read/write requests) from ceph OSD/RBD to the underlying SCSI LLD. From initial reading of docs it looks like in the I/O stack user/client issued I/Os would reach the actual device as below: Client I/O req VFS ceph fs Ceph OSD daemon RBD SCSI midlayer SCSI LLD (say mpt3sas) Disk Ref: https://en.wikipedia.org/wiki/NVM_Express#/media/File:IO_stack_of_the_Li nux_kernel.svg My question is: The SCSI LLD would support both read /write entry points for I/O requests issued by the filesystem/block I/O but they also support some custom requests using IOCTLs. So how can ceph support issuing of such IOCTL requests to the device if user issues such request. Say for example power cycling the drive etc. It can also be a passthro request down to the device. Appreciate the help and thanks in advance. thanks & regards, naveen