git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generated code for 'du' command.
[libguestfs.git]
/
perl
/
Guestfs.xs
diff --git
a/perl/Guestfs.xs
b/perl/Guestfs.xs
index
6980bda
..
d6ef053
100644
(file)
--- a/
perl/Guestfs.xs
+++ b/
perl/Guestfs.xs
@@
-2798,3
+2798,17
@@
PREINIT:
OUTPUT:
RETVAL
OUTPUT:
RETVAL
+SV *
+du (g, path)
+ guestfs_h *g;
+ char *path;
+PREINIT:
+ int64_t sizekb;
+ CODE:
+ sizekb = guestfs_du (g, path);
+ if (sizekb == -1)
+ croak ("du: %s", guestfs_last_error (g));
+ RETVAL = my_newSVll (sizekb);
+ OUTPUT:
+ RETVAL
+