title: How do you determine if an XFS filesystem is frozen programmatically?
body: <p>I'm writing a simple EC2 snapshot script and need to determine if there is a way to know if a filesystem is frozen or not. As it currently stands, trying to do anything to a frozen filesystem hangs the script (and hangs in bash shell as well).</p>
  
  <p>Is there a command or way to know if the filesystem is in a frozen state?</p>
  
  <p>Thanks!</p>