glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

nl-cache: Resolve the inode is not of type dir error

Open mohit84 opened this issue 8 months ago • 5 comments

During fop(mkdir)_cbk process by nl-cache it checks the inode type validation based on loc->inode though loc->inode is populated by first xlator like fuse/gfapi. The loc->inode does not have inode_type so it always throw an error.

Solution: Check the inode type based on inode attribute return by server xlator as an argument in callback function.

Fixes: #2521 Change-Id: Ibc4675ebe095d14310cdb2348c2f55a73f972046

mohit84 avatar Jun 01 '24 10:06 mohit84