From: Vlad Apostolov <vapo@sgi.com>
To: jgl@johngroves.net
Cc: John Groves <John@Groves.net>,
linux-xfs@oss.sgi.com, Dean Roehrich <roehrich@sgi.com>
Subject: Re: XFS dmapi: dm_path_to_handle fails if the path is a directory
Date: Mon, 06 Nov 2006 09:37:09 +1100 [thread overview]
Message-ID: <454E6795.1040900@sgi.com> (raw)
In-Reply-To: <454B58E4.6000802@johngroves.net>
John Groves wrote:
>
>
> Vlad Apostolov wrote:
>
>> Just a note that dm_path_to_handle works fine with relative paths on
>> my machine.
>
> In your case, could it be applying the "current working directory"
> from the process context to resolve a full path? Mine is a daemon,
> and the relative paths are not valid relative to the "cwd" in which
> the daemon was started.
>
> ...just a thought. Otherwise, for the moment I may have to just
> accept it as weird...
>
> Thanks again,
> John
I am using
xfs-cmds/xfstests/dmapi/src/suite1/cmd/path_to_handle
and the relative path passed as an argument is directly given to
dm_path_to_handle().
The current working directory
I can't really explain why it doesn't work in your case. Here is an
example of a directory
path to handle I get:
emu:/home/vapo/isms/xfs-cmds/xfstests/dmapi/src/suite1/cmd #
./path_to_handle /mnt/scratch1/dmapi
5d1111a90e4800000e0000006e0000008300000000000000
emu:/home/vapo/isms/xfs-cmds/xfstests/dmapi/src/suite1/cmd #
./path_to_handle ../../../../../../../../../mnt/scratch1/dmapi
5d1111a90e4800000e0000006e0000008300000000000000
emu:/home/vapo/isms/xfs-cmds/xfstests/dmapi/src/suite1/cmd # cd /
emu:/ #
/home/vapo/isms/xfs-cmds/xfstests/dmapi/src/suite1/cmd/path_to_handle
../../../../../../../../../mnt/scratch1/dmapi
5d1111a90e4800000e0000006e0000008300000000000000
Regards,
Vlad
prev parent reply other threads:[~2006-11-05 22:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-31 23:21 XFS dmapi: dm_path_to_handle fails if the path is a directory John Groves
2006-11-01 0:44 ` Vlad Apostolov
2006-11-01 0:57 ` Vlad Apostolov
2006-11-03 1:00 ` John Groves
2006-11-03 2:41 ` Vlad Apostolov
2006-11-03 2:53 ` John Groves
2006-11-03 2:59 ` Vlad Apostolov
2006-11-03 14:57 ` John Groves
2006-11-05 22:37 ` Vlad Apostolov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=454E6795.1040900@sgi.com \
--to=vapo@sgi.com \
--cc=John@Groves.net \
--cc=jgl@johngroves.net \
--cc=linux-xfs@oss.sgi.com \
--cc=roehrich@sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.