Re: [PATCH V10 2/5] fuse: Passthrough initialization and release

2020-12-16 Thread Alessio Balsini
On Wed, Dec 16, 2020 at 09:32:51PM +0800, wu-...@tcl.com wrote: > Hi Alessio, > > It may cause file reference counter leak in fuse_passthrough_open. If the > passthrough_filp > > not implement read_iter/write_iter or passthrough struct allocated failed, > the reference counter get in fget(pro->fd

Re: [PATCH V10 2/5] fuse: Passthrough initialization and release

2020-12-16 Thread Alessio Balsini
Hi Tao, On Sat, Nov 28, 2020 at 09:57:31AM +0800, Peng Tao wrote: > On Fri, Nov 27, 2020 at 9:41 PM Alessio Balsini wrote: > > > > Hi Peng, > > > > Thanks for the heads up! > > > > On Thu, Nov 26, 2020 at 09:33:34PM +0800, Peng Tao wrote: > > > On Tue, Oct 27, 2020 at 12:19 AM Alessio Balsini >

Re: [PATCH V10 2/5] fuse: Passthrough initialization and release

2020-11-27 Thread Peng Tao
On Fri, Nov 27, 2020 at 9:41 PM Alessio Balsini wrote: > > Hi Peng, > > Thanks for the heads up! > > On Thu, Nov 26, 2020 at 09:33:34PM +0800, Peng Tao wrote: > > On Tue, Oct 27, 2020 at 12:19 AM Alessio Balsini > > wrote: > > > [...] > > > int fuse_passthrough_setup(struct fuse_conn *fc, struc

Re: [PATCH V10 2/5] fuse: Passthrough initialization and release

2020-11-27 Thread Alessio Balsini
Hi Peng, Thanks for the heads up! On Thu, Nov 26, 2020 at 09:33:34PM +0800, Peng Tao wrote: > On Tue, Oct 27, 2020 at 12:19 AM Alessio Balsini wrote: > > [...] > > int fuse_passthrough_setup(struct fuse_conn *fc, struct fuse_file *ff, > >struct fuse_open_out *openarg

Re: [PATCH V10 2/5] fuse: Passthrough initialization and release

2020-11-26 Thread Peng Tao
On Tue, Oct 27, 2020 at 12:19 AM Alessio Balsini wrote: > > Implement the FUSE passthrough ioctl() that associates the lower > (passthrough) file system file with the fuse_file. > > The file descriptor passed to the ioctl() by the FUSE daemon is used to > access the relative file pointer, that wil

[PATCH V10 2/5] fuse: Passthrough initialization and release

2020-10-26 Thread Alessio Balsini
Implement the FUSE passthrough ioctl() that associates the lower (passthrough) file system file with the fuse_file. The file descriptor passed to the ioctl() by the FUSE daemon is used to access the relative file pointer, that will be copied to the fuse_file data structure to consolidate the link