xfs_estimate   (8) manpage
xfs_estimate
8
  • NAME
      xfs_estimate - estimate the space that an XFS filesystem will take
  • SYNOPSIS
      
      <3>xfs_estimate<1> [ <3>-h?<1> ] [ <3>-b<1> blocksize ] [ <3>-i<1> logsize ]
      		   [ <3>-e<1> logsize ] [ <3>-v<1> ] directory ...
      
  • DESCRIPTION
      For each <2>directory<1> argument, xfs_estimate estimates the space that directory would take if it were copied to an XFS filesystem. xfs_estimate does not cross mount points. The following definitions are used: KB = *1024 MB = *1024*1024 GB = *1024*1024*1024

      The xfs_estimate options are:
      <3>-b<1> <2>blocksize<1>
      Use blocksize instead of the default blocksize of 4096 bytes. The modifier k can be used after the number to indicate multiplication by 1024. For example,

      <4>xfs_estimate -b 64k /<1>
      requests an estimate of the space required by the directory / on an XFS filesystem using a blocksize of 64K (65536) bytes.
      -v
      Display more information, formatted.
      -h
      Display usage message.
      -?
      Display usage message.
      <3>-i, -e<1> <2>logsize<1>
      Use logsize instead of the default log size of 1000 blocks. -i refers to an internal log, while -e refers to an external log. The modifiers k or m can be used after the number to indicate multiplication by 1024 or 1048576, respectively. For example,

      <4>xfs_estimate -i 1m /<1>
      requests an estimate of the space required by the directory / on an XFS filesystem using an internal log of 1 megabyte.
  • EXAMPLES
      
       8v
      % <4>xfs_estimate -e 10m /var/tmp<1><7>
      /var/tmp will take about 4.2 megabytes
              with the external log using 2560 blocks or about 10.0 megabytes
      
      
       .8v
      % <4>xfs_estimate -v -e 10m /var/tmp<1><7>
      directory                     bsize   blocks    megabytes    logsize
      /var/tmp                       4096      792        4.0MB   10485760
      
      
       .8v
      % <4>xfs_estimate -v /var/tmp<1><7>
      directory                     bsize   blocks    megabytes    logsize
      /var/tmp                       4096     3352       14.0MB   10485760
      
      
       .8v
      % <4>xfs_estimate /var/tmp<1><7>
      /var/tmp will take about 14.0 megabytes
      
Current Users: 69 © 1999-2006 Linux.com.hk PenguinSoft
All trademarks and copyrights on this page are owned by their respective companies. Linux is a trademark of Linus Torvalds.