From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Landley Subject: Re: [PATCH v2] Ceph: Punch hole support Date: Thu, 20 Jun 2013 15:56:38 -0500 Message-ID: <1371761798.2776.134@driftwood> References: <1371224186-4809-1-git-send-email-liwang@ubuntukylin.com> <1371224340-4926-1-git-send-email-liwang@ubuntukylin.com> <51C1DB17.6040803@ubuntukylin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <51C1DB17.6040803@ubuntukylin.com> (from liwang@ubuntukylin.com on Wed Jun 19 11:23:51 2013) Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org To: Li Wang Cc: Sage Weil , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Yunchuan Wen , linux-fsdevel@vger.kernel.org List-Id: ceph-devel.vger.kernel.org On 06/19/2013 11:23:51 AM, Li Wang wrote: > This patch implements punch hole (fallocate) support for Ceph. > > Signed-off-by: Li Wang > Signed-off-by: Yunchuan Wen > +static int ceph_delete_object(struct inode *inode, u64 offset, u64 > *length) > +{ > + struct ceph_inode_info *ci = ceph_inode(inode); > + struct ceph_fs_client *fsc = ceph_inode_to_client(inode); > + struct ceph_osd_request *req; Mixing tabs and spaces. > +static int ceph_punch_hole(struct file *file, loff_t offset, loff_t > length) > +{ > + struct inode *inode = file->f_dentry->d_inode; > + int ret = 0; > + > + if (!S_ISREG(inode->i_mode)) { > + return -EOPNOTSUPP; > + } And again. Rob