Try this:
getmpoint.sh, expects the filenames as param
#!/bin/bash
for path
do
orig=$path
#find the existing path component
while [ ! -e "$path" ]
do
path=$(dirname "$path")
done
#get a real file from a symlink
[ -L "$path" ] && path=$(readlink "$path")
# use "portable" (df -P) - to get all informatons
# 512-blocks Used Available Capacity Mounted on
read s512 used avail capa mounted <<< $(df -P "$path" | awk '{if(NR==2){ print $2, $3, $4, $5, $6}}')
echo "Filename: $orig"
echo "Mounted: $mounted"
echo "Available blocks: $avail"
done