>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
|