* Re: [PATCH 1/3] ext4: return the extent cache information via fiemap [not found] <20190809181831.10618-1-tytso@mit.edu> @ 2019-08-10 7:33 ` Christoph Hellwig 2019-08-11 16:15 ` Theodore Y. Ts'o 0 siblings, 1 reply; 3+ messages in thread From: Christoph Hellwig @ 2019-08-10 7:33 UTC (permalink / raw) To: Theodore Ts'o; +Cc: Ext4 Developers List, linux-fsdevel, linux-api On Fri, Aug 09, 2019 at 02:18:29PM -0400, Theodore Ts'o wrote: > For debugging reasons, it's useful to know the contents of the extent > cache. Since the extent cache contains much of what is in the fiemap > ioctl, extend the fiemap interface to return this information via some > ext4-specific flags. Nak. No weird fs specific fiemap flags that aren't even in the uapi header. Please provide your own debug only interface. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/3] ext4: return the extent cache information via fiemap 2019-08-10 7:33 ` [PATCH 1/3] ext4: return the extent cache information via fiemap Christoph Hellwig @ 2019-08-11 16:15 ` Theodore Y. Ts'o 2019-08-12 6:47 ` Christoph Hellwig 0 siblings, 1 reply; 3+ messages in thread From: Theodore Y. Ts'o @ 2019-08-11 16:15 UTC (permalink / raw) To: Christoph Hellwig; +Cc: Ext4 Developers List, linux-fsdevel, linux-api On Sat, Aug 10, 2019 at 12:33:43AM -0700, Christoph Hellwig wrote: > > On Fri, Aug 09, 2019 at 02:18:29PM -0400, Theodore Ts'o wrote: > > For debugging reasons, it's useful to know the contents of the extent > > cache. Since the extent cache contains much of what is in the fiemap > > ioctl, extend the fiemap interface to return this information via some > > ext4-specific flags. > > Nak. No weird fs specific fiemap flags that aren't even in the uapi > header. Please provide your own debug only interface. I can understand why you don't like this from the principle of the thing. I'll create my own ioctl, and make a copy of ioctl_fiemap() into ext4 and modify it for my needs. I was trying to avoid needing to do that, since there is plenty of space in the fiemap flags to carve out space for file-specific specific flags, and avoiding making extra copies of code for the purposes of reuse weighed more heavily than "no fs-specific fiemap flags". - Ted ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/3] ext4: return the extent cache information via fiemap 2019-08-11 16:15 ` Theodore Y. Ts'o @ 2019-08-12 6:47 ` Christoph Hellwig 0 siblings, 0 replies; 3+ messages in thread From: Christoph Hellwig @ 2019-08-12 6:47 UTC (permalink / raw) To: Theodore Y. Ts'o Cc: Christoph Hellwig, Ext4 Developers List, linux-fsdevel, linux-api On Sun, Aug 11, 2019 at 12:15:08PM -0400, Theodore Y. Ts'o wrote: > > Nak. No weird fs specific fiemap flags that aren't even in the uapi > > header. Please provide your own debug only interface. > > I can understand why you don't like this from the principle of the > thing. I think mixing up in-kernel temporary state with the on-disk layout is a bad idea, yes. I think it is an even worse idea to try to sneak it in without API review in an undocumented fashion. > > I'll create my own ioctl, and make a copy of ioctl_fiemap() into ext4 > and modify it for my needs. I was trying to avoid needing to do that, > since there is plenty of space in the fiemap flags to carve out space > for file-specific specific flags, and avoiding making extra copies of > code for the purposes of reuse weighed more heavily than "no > fs-specific fiemap flags". I think dumping your internal state is a candidate for debugs, not a copy of ioctl_fiemap. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-12 6:47 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20190809181831.10618-1-tytso@mit.edu> 2019-08-10 7:33 ` [PATCH 1/3] ext4: return the extent cache information via fiemap Christoph Hellwig 2019-08-11 16:15 ` Theodore Y. Ts'o 2019-08-12 6:47 ` Christoph Hellwig
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).