mirror_zfs/cmd
Brian Behlendorf a6cba65cca Check for trailing '/' in mount.zfs
When run with a root '/' cwd the mount.zfs helper would strip not
only the '/' but also the next character from the dataset name.
For example, '/tank' was changed to 'ank' instead of just 'tank'.
Originally, this was done for the '/tmp' cwd case where we needed
to strip the '/' following the cwd.  For example '/tmp/tank' needed
to remove the '/tmp' cwd plus 1 character for the '/'.

This change fixes the problem by checking the cwd and if it ends in
a '/' it does not strip and extra character.  Otherwise it will strip
the next character.  I believe this should only ever be true for the
root directory.

Closes #148
2011-03-10 12:58:44 -08:00
..
mount_zfs Check for trailing '/' in mount.zfs 2011-03-10 12:58:44 -08:00
zdb Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
zfs Fix mount helper 2011-03-09 15:26:48 -08:00
zinject Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
zpios Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
zpool Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
zpool_id Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
zpool_layout Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
ztest Linux 2.6.38 compat, blkdev_get_by_path() 2011-02-23 12:29:38 -08:00
zvol_id Add xvattr support 2011-03-02 11:43:50 -08:00
Makefile.am Fix mount helper 2011-03-09 15:26:48 -08:00
Makefile.in Fix mount helper 2011-03-09 15:26:48 -08:00