HomeClusterLabs Projects

Low: fs-lib.sh: Optimize fs-lib.sh based filesystem monitor code

Description

Low: fs-lib.sh: Optimize fs-lib.sh based filesystem monitor code

fs-lib.sh's is_alive function attempts to determine if a filesystem
resource is healthy by writing and reading a file from disk. The
method used to pick the file name involves a infinite loop where
we try different file names until we get one that doesn't exist.
We don't need to be doing that... Instead we should create a unique
filename based on the resource's instance name and use that for testing.

Resolves: rhbz#1023099

Details

Provenance
David Vossel <dvossel@redhat.com>Authored on Oct 28 2013, 4:41 PM
Parents
rR71f6ac1a478a: Low: netfs.sh: Re-introduces no_unmount functionality into netfs.sh
Branches
Loading...
Tags
Loading...

Event Timeline