* Re: [PATCH 4/7] xfs: Implement fallocate query support mode [not found] ` <1505749947-26360-5-git-send-email-lczerner@redhat.com> @ 2017-09-18 17:56 ` Christoph Hellwig 2017-09-19 3:28 ` OGAWA Hirofumi 2017-09-19 8:15 ` Lukas Czerner 0 siblings, 2 replies; 4+ messages in thread From: Christoph Hellwig @ 2017-09-18 17:56 UTC (permalink / raw) To: Lukas Czerner; +Cc: linux-fsdevel, linux-xfs, linux-api This seems to miss any explanation and 6 out of 7 patches. That being said, I really detest adding weird query modes to random syscalls. We should expose capabilities through the interface that was designed for such things: (f)pathconf, as there are a lot more important parameters we currently fail to expose to userspace to start with. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4/7] xfs: Implement fallocate query support mode 2017-09-18 17:56 ` [PATCH 4/7] xfs: Implement fallocate query support mode Christoph Hellwig @ 2017-09-19 3:28 ` OGAWA Hirofumi 2017-09-19 8:15 ` Lukas Czerner 1 sibling, 0 replies; 4+ messages in thread From: OGAWA Hirofumi @ 2017-09-19 3:28 UTC (permalink / raw) To: Christoph Hellwig; +Cc: Lukas Czerner, linux-fsdevel, linux-xfs, linux-api Christoph Hellwig <hch@infradead.org> writes: I myself Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> to [5/7] fat part though, > That being said, I really detest adding weird query modes to random > syscalls. We should expose capabilities through the interface that > was designed for such things: (f)pathconf, as there are a lot more > important parameters we currently fail to expose to userspace to > start with. This is true. For example, max link count. And it might be able to use for fs's bug/issue detection too (in past, userland has to add workaround for all cases, because noway to detect the buggy or not). Thanks. -- OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4/7] xfs: Implement fallocate query support mode 2017-09-18 17:56 ` [PATCH 4/7] xfs: Implement fallocate query support mode Christoph Hellwig 2017-09-19 3:28 ` OGAWA Hirofumi @ 2017-09-19 8:15 ` Lukas Czerner 2017-09-19 14:13 ` Christoph Hellwig 1 sibling, 1 reply; 4+ messages in thread From: Lukas Czerner @ 2017-09-19 8:15 UTC (permalink / raw) To: Christoph Hellwig; +Cc: linux-fsdevel, linux-xfs, linux-api On Mon, Sep 18, 2017 at 10:56:51AM -0700, Christoph Hellwig wrote: > This seems to miss any explanation and 6 out of 7 patches. See linux-fsdevel for entire patch set. https://www.spinics.net/lists/linux-fsdevel/msg115740.html > > That being said, I really detest adding weird query modes to random > syscalls. We should expose capabilities through the interface that > was designed for such things: (f)pathconf, as there are a lot more > important parameters we currently fail to expose to userspace to > start with. (f)pathconf on it's own is useless because I need to get this information directly from the file system. Supported fallocate modes can differ with inode flags (encrypted files, extent/indirect based files on ext4). I also need in-kernel interface. That's why I though fallocate is the convenient place to put this. I have not looked to it, but other option might be to use fstat to get this. -Lukas ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4/7] xfs: Implement fallocate query support mode 2017-09-19 8:15 ` Lukas Czerner @ 2017-09-19 14:13 ` Christoph Hellwig 0 siblings, 0 replies; 4+ messages in thread From: Christoph Hellwig @ 2017-09-19 14:13 UTC (permalink / raw) To: Lukas Czerner Cc: Christoph Hellwig, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA, linux-xfs-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA On Tue, Sep 19, 2017 at 10:15:38AM +0200, Lukas Czerner wrote: > On Mon, Sep 18, 2017 at 10:56:51AM -0700, Christoph Hellwig wrote: > > This seems to miss any explanation and 6 out of 7 patches. > > See linux-fsdevel for entire patch set. > https://www.spinics.net/lists/linux-fsdevel/msg115740.html But only one made it to linux-xfs, so please fix your patch sending. > (f)pathconf on it's own is useless because I need to get this > information directly from the file system. Supported fallocate modes can > differ with inode flags (encrypted files, extent/indirect based files on > ext4). I also need in-kernel interface. And that is exactly what I want you to do: finally bite the bullet and add pathconf inode operation. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-19 14:13 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1505749947-26360-1-git-send-email-lczerner@redhat.com> [not found] ` <1505749947-26360-5-git-send-email-lczerner@redhat.com> 2017-09-18 17:56 ` [PATCH 4/7] xfs: Implement fallocate query support mode Christoph Hellwig 2017-09-19 3:28 ` OGAWA Hirofumi 2017-09-19 8:15 ` Lukas Czerner 2017-09-19 14:13 ` 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).