xfs
[Top] [All Lists]

Re: dm_handle_to_path causes system crash

To: "Francis Qu" <francis@xxxxxxxxxxxx>
Subject: Re: dm_handle_to_path causes system crash
From: Dean Roehrich <roehrich@xxxxxxx>
Date: Fri, 07 Jun 2002 12:31:28 -0500
Cc: "Linux XFS" <linux-xfs@xxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
>From:  "Francis Qu" <francis@xxxxxxxxxxxx>
>Linux-2.4.18-xfs
>dmapi: 2.0.1
>
>dm_handle_to_path -> getcwd --> sys_cwd --> __d_path ---> crash
>
>Thanks,
>Francis

Francis,
  I don't see this one in the latest kernel&cmds tree.

Here's what I tried, using tools from the dmapi test suite:

# mount -o dmapi /dev/hda12 /mnts/dmi1
# mkdir /mnts/dmi1/d2   
# touch /mnts/dmi1/d2/P1
# path_to_handle /mnts/dmi1/d2
a82086856f69f7c20e000000010000004400000000000000
# path_to_handle /mnts/dmi1/d2/P1
a82086856f69f7c20e000000010000004500000000000000
# umount /mnts/dmi1
# mount -o dmapi /dev/hda12 /mnts/dmi1
# handle_to_path a82086856f69f7c20e000000010000004400000000000000 \
        a82086856f69f7c20e000000010000004500000000000000
dm_handle_to_path failed, (2) No such file or directory
# ls /mnts/dmi1/d2
P1
# handle_to_path a82086856f69f7c20e000000010000004400000000000000 \
        a82086856f69f7c20e000000010000004500000000000000
rlenp is 17, pathbufp is /mnts/dmi1/d2/P1
#

Note, the current implementation of handle_to_path won't find the file if the
file isn't already in the dcache.  But still, I don't see a core dump or
crash.

Dean


<Prev in Thread] Current Thread [Next in Thread>
  • Re: dm_handle_to_path causes system crash, Dean Roehrich <=