Statistiques
| Révision :

root / bin / get-provisioned-space @ 60

Historique | Voir | Annoter | Télécharger (381 octet)

1
#!/bin/bash
2
# $Id: get-provisioned-space 51 2013-10-10 11:20:37Z ltaulell $
3
# Copyright (C) 2013 Kevin Reverchon, Loïs Taulelle
4
# This file/program is part of gZFS free software
5
# See COPYING file for details
6
#
7

    
8
BINZFS="/sbin/zfs"
9
BINZPOOL="/sbin/zpool"
10

    
11
function usage {
12
  echo "Syntax: $0 zfs_volume_name"1>&2
13
  exit 1
14
}
15

    
16
if [ "$1" == "" ]
17
then
18
   usage
19
else
20

    
21
$BINZFS get volsize -H -t volume |egrep $1
22
$BINZFS get referenced -H $1
23
fi