git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
supermin: Ignore more unreadable files found on RHEL 6.
[libguestfs.git]
/
daemon
/
zerofree.c
diff --git
a/daemon/zerofree.c
b/daemon/zerofree.c
index
457f8db
..
05a547b
100644
(file)
--- a/
daemon/zerofree.c
+++ b/
daemon/zerofree.c
@@
-26,9
+26,17
@@
#include "daemon.h"
#include "actions.h"
#include "daemon.h"
#include "actions.h"
+#include "optgroups.h"
int
int
-do_zerofree (char *device)
+optgroup_zerofree_available (void)
+{
+ int r = access ("/usr/sbin/zerofree", X_OK);
+ return r == 0;
+}
+
+int
+do_zerofree (const char *device)
{
char *err;
int r;
{
char *err;
int r;