From: "Theodore Ts'o" Subject: Is it deliberate that the device mapper is not passing the DISCARD ioctls Date: Mon, 20 Sep 2010 09:14:56 -0400 Message-ID: To: linux-ext4@vger.kernel.org, dm-devel@redhat.com Return-path: Received: from THUNK.ORG ([69.25.196.29]:57367 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754213Ab0ITNO6 (ORCPT ); Mon, 20 Sep 2010 09:14:58 -0400 Sender: linux-ext4-owner@vger.kernel.org List-ID: Hi there, I was just testing discard support in mke2fs, and I was surprised that although the dm layer appears to pass discard requests through to the underlying block device driver when submitted through the bio layer (i.e., from kernel file systems), apparently the discard ioctls (i.e., BLKDISCARD, BLKDISCARDSEC, BLKDISCARDZEROES) are not currently wired up in the dm layer. Is this deliberate, or an oversight? Thanks, regards, - Ted