Using "user.mime_type" xattr for MIME guessing

2018-08-09 Thread Colin Atkinson via gtk-devel-list
Hi everyone, I'm working on a FUSE file system which makes network requests whenever a file is read. So obviously, I would like to avoid excess read requests to files. The current implementation [0] of gio's MIME guessing seems to check the file extension, and then immediately fall back on

Re: Using "user.mime_type" xattr for MIME guessing

2018-08-09 Thread Bastien Nocera
On Thu, 2018-08-09 at 10:35 -0400, Colin Atkinson via gtk-devel-list wrote: > Hi everyone, > I'm working on a FUSE file system which makes network requests > whenever a file is read. So obviously, I would like to avoid excess > read requests to files. > > The current implementation [0] of gio's

Re: Using "user.mime_type" xattr for MIME guessing

2018-08-09 Thread Colin Atkinson via gtk-devel-list
On Thu, Aug 9, 2018 at 10:47 AM Bastien Nocera wrote: > On Thu, 2018-08-09 at 10:35 -0400, Colin Atkinson via gtk-devel-list > wrote: > > Hi everyone, > > I'm working on a FUSE file system which makes network requests > > whenever a file is read. So obviously, I would like to avoid excess > >

Re: Using "user.mime_type" xattr for MIME guessing

2018-08-09 Thread Bastien Nocera
On Thu, 2018-08-09 at 13:09 -0400, Colin Atkinson wrote: > On Thu, Aug 9, 2018 at 10:47 AM Bastien Nocera > wrote: > > On Thu, 2018-08-09 at 10:35 -0400, Colin Atkinson via gtk-devel- > > list > > wrote: > > > Hi everyone, > > > I'm working on a FUSE file system which makes network requests > > >