From: Joe Wong Subject: denty_to_fh/fh_to_dentry Date: 09 Apr 2002 11:38:04 +0800 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1018323484.5829.4.camel@star8.staff.shaolinmicro.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Received: from star8.staff.shaolinmicro.com (star8.staff.shaolinmicro.com [192.168.0.8]) by uranus.planet.shaolinmicro.com (8.11.6/linuxconf) with ESMTP id g393c4J29605 for ; Tue, 9 Apr 2002 11:38:04 +0800 To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello, I am trying to implement dentry_to_fh/fh_to_dentry in my fs. What is the proper return value in dentry_to_fh? I saw that 'fat' returns 3 and reiserfs returns 3 or 6 depends on needparent flag. I try to copy the same concept but it does not work. when I try to cat a file, unknown error 521 is returned. I checked that 521 is EBADHANDLE. Any hints? TIA. - Joe