xfs
[Top] [All Lists]

Re: libhandle, open_by_handle()

To: linux-xfs@xxxxxxxxxxx
Subject: Re: libhandle, open_by_handle()
From: Nathan Scott <nathans@xxxxxxx>
Date: Mon, 2 Jun 2003 13:53:04 +1000
In-reply-to: <20030602031704.GR32642@plato.local.lan>
References: <20030602031704.GR32642@plato.local.lan>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Sun, Jun 01, 2003 at 07:17:04PM -0800, Ethan Benson wrote:
> 
> Hi,
> 
> I am trying to figure out how libhandle is used and have run into some
> difficulties.
> 
> am i missing something obvious? or does this simply not work in linux?

it should work - xfsdump uses these interfaces extensively.

> also when looking at the libhandle source i noticed a few cases where

also might help to refer to xfsdump source, and the xfs_ioctl function
in the XFS kernel source.  off the top of my head, I don't know what
the problem might be, nothing obvious.

> it calls exit(1) rather then return 1; from functions (path_to_handle
> does this if its internal open() call fails) this is really bad form
> for a shared library.

yup, fixed, thanks.

cheers.

-- 
Nathan


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