#!/bin/ksh93
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# 61haes_r714 src/43haes/lib/ksh93/aix/KLIB_HACMP_AIX_lsfs.sh 1.4 
#  
# Licensed Materials - Property of IBM 
#  
# COPYRIGHT International Business Machines Corp. 2005,2011 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
# @(#)22	1.4 src/43haes/lib/ksh93/aix/KLIB_HACMP_AIX_lsfs.sh, hacmp, 61haes_r714 11/28/11 14:58:49
#
#=head1 NAME
#
# KLIB_HACMP_AIX_lsfs - List all JFS* filesystems
#
#=head1 ARGUMENTS
#
#	None.
#
#=head1 RETURN
#
#   0: success
#   1: failure
#
#=head1 COPYRIGHT
#
#(C) COPYRIGHT International Business Machines Corp. 2005
#All Rights Reserved
#
#=cut
#
function KLIB_HACMP_AIX_lsfs
{
    . /usr/es/lib/ksh93/func_include

    typeset ERROR_IF_ARGS=$1
    if [[ -n $ERROR_IF_ARGS ]]; then
        return 1
    fi

    LANG="C" FSS=`lsfs | grep -v "vxfs" | awk '{ print $3 }' 2>/dev/null`

    if [[ $? -ne 0 ]]; then
        return 1
    else
        for FS in $FSS; do
            echo $FS
        done
    fi

    return 0
}