xfs
[Top] [All Lists]

Re: [DMAPI] code error in dm_ip_to_handle()

To: Dean Roehrich <roehrich@xxxxxxx>
Subject: Re: [DMAPI] code error in dm_ip_to_handle()
From: Aurelien Degremont - Stagiaire <degremont@xxxxxxxxxxx>
Date: Mon, 16 May 2005 09:33:45 +0200
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20050513163158.C74B94FE8A@xxxxxxxxxxxxxxxxxxxxxxxx>
References: <20050513163158.C74B94FE8A@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.2.1) Gecko/20030225
Dean Roehrich a écrit:
What's the difference between
dm_path_to_fshandle("/")


hlen = DM_FSHSIZE


dm_path_to_handle("/") ?


hlen = DM_HSIZE(handle)


Both use dm_ip_to_handle(), and get a full filehandle.

Ok, ok
But, in inode_to_fh(), how know that we must return a fshandle (with the dm_fid part filled with 0) or a filehandle (ino, len and gen filled) ?

Could you explain the behaviour of inode_to_fh() ? (Especially the differences related to fshandle/filehandle)

dm_handle_to_ip() is always called using a filehandle ? (never a fshandle ?)


Aurelien


<Prev in Thread] Current Thread [Next in Thread>