mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
ZTS: Add tests for creation time
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com> Reviewed-by: Allan Jude <allan@klarasystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #12432
This commit is contained in:
committed by
Brian Behlendorf
parent
abbf0bd4eb
commit
8ae86e2edc
@@ -4024,6 +4024,34 @@ function stat_size #<path>
|
||||
esac
|
||||
}
|
||||
|
||||
function stat_ctime #<path>
|
||||
{
|
||||
typeset path=$1
|
||||
|
||||
case $(uname) in
|
||||
FreeBSD)
|
||||
stat -f %c "$path"
|
||||
;;
|
||||
*)
|
||||
stat -c %Z "$path"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
function stat_crtime #<path>
|
||||
{
|
||||
typeset path=$1
|
||||
|
||||
case $(uname) in
|
||||
FreeBSD)
|
||||
stat -f %B "$path"
|
||||
;;
|
||||
*)
|
||||
stat -c %W "$path"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Run a command as if it was being run in a TTY.
|
||||
#
|
||||
# Usage:
|
||||
|
||||
Reference in New Issue
Block a user