[PATCH] xfstests: 261: test failures caused by bogus mtab entries

Christoph Hellwig hch at infradead.org
Thu Oct 6 14:49:13 CDT 2011


> +mtab=/proc/self/mounts
> +if [ ! -r "${mtab}" ]; then
> +    mtab=/etc/mtab
> +    if [ ! -r "${mtab}" ]; then
> +	echo "warning: proceeding without use of mount table" >&2
> +    fi
> +fi

Just use /proc/self/mounts unconditionally, it's been there for a long
time.

Otherwise looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the xfs mailing list