Thread (4 messages) 4 messages, 3 authors, 2014-07-25

Re: [PATCH] ext4: Add support for FIDTRIM, a best-effort ioctl for deep discard trim

From: Andreas Dilger <hidden>
Date: 2014-07-25 03:46:38
Also in: linux-fsdevel

On Jul 24, 2014, at 7:50 PM, JP Abgrall [off-list ref] wrote:
On Thu, Jul 24, 2014 at 5:08 AM, Dave Chinner [off-list ref] wrote:
quoted
On Wed, Jul 23, 2014 at 04:47:18PM -0700, JP Abgrall wrote:
quoted
+#define FIDTRIM      _IOWR('X', 122, struct fstrim_range)    /* Deep discard trim */
The 'X' ioctl namespace is actually XFS's ioctl namespace. FIDTRIM
should be in the 'f' namespace
Ok.
How should the next sequence number be handled?
Go with ('f', 122,...) after FITRIM, or go with ('f', 12,...) after
FS_IOC_FIEMAP ('f' namepsace)?
Please leave the low 'f' values for ext2/3/4 (where FS_IOC_[GS]ETFLAGS,
FS_IOC_[GS]ETFLAGS, and FS_IOC_FIEMAPand came from, and use high 'f'
numbers, maybe starting at 128 (?) for generic ioctl values.

Cheers, Andreas




Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help