diff options
author | Martin Schwenke <martin@meltin.net> | 2011-10-14 15:52:12 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2011-11-16 16:26:45 +1100 |
commit | 9187db869e6b7b2eb5bdfaaa9f6bd9221cdc449b (patch) | |
tree | 1eb14789d61e533df8ade70b894fd5525cf4b654 /ctdb/lib/replace/crypt.c | |
parent | 44de394796b8b4f1b046ccf226372cd8ba9ad768 (diff) | |
download | samba-9187db869e6b7b2eb5bdfaaa9f6bd9221cdc449b.tar.gz samba-9187db869e6b7b2eb5bdfaaa9f6bd9221cdc449b.tar.xz samba-9187db869e6b7b2eb5bdfaaa9f6bd9221cdc449b.zip |
Eventscripts: Make 40.fs_use use less processes and arguably clearer.
* $fs can be parsed using shell prefix and suffix removal.
* df output can be parsed with a single call to sed.
Failure is indicated by empty output from sed, so we check for that
as the error condition, changing the associated message
appropriately.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c5ef0d1440f1d952784cc67946c414d149722d01)
Diffstat (limited to 'ctdb/lib/replace/crypt.c')
0 files changed, 0 insertions, 0 deletions