On 07/26/2016 08:24 PM, kanishk rastogi wrote: > > hi all, > I was going though the FSAL apis and had questions regarding the lock > APi's expectation from the underlying filesystem... > > 1> Is it expected that the underlying-Filesystem will release the lock > after the lease time expires? > If yes is this the lease time exported by underlying Filesystem's > FSAL layer?
AFAIU, underlying fielesystem need not know about lease time. NFS-Ganesh should send unlock to the backend FS post lease expiry. > > 2> How is the underlying FSAL interpret the owner?? > Can i assume that is will be of certain size so that i can > identify the owner?? > I dont see anyway for FSAL to tell nfsganesha about the lock > owner if there is a conflicting lock. Why does underlying Filesystem > need to know about the lock owner then ?? FWIU, I think current lock owner implementation is not correct. We pass in "state_owner_t " structure contents in binary format to the backend FSAL which shall change with nfs-ganesha reboots. We should be instead sending lock owners sent by NFS-clients along with the size. Underlying filesystem need to know about lock-owners if it needs to distinguish between the lock requests sent by the same NFS-ganesha head, which refer to different NFS clients. Thanks, Soumya > > . > > > -- > regards > kanishk > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > > > > _______________________________________________ > Nfs-ganesha-devel mailing list > Nfs-ganesha-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel