summaryrefslogtreecommitdiffstats
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* Add Lua bindings.Richard W.M. Jones2012-11-171-0/+1
| | | | | | | | These are relatively complete, although only lightly tested. Missing: - events - last_errno - user_cancel
* lib: Add inspect_list_applications2 method (RHBZ#859949)John Eckersberg2012-11-012-0/+2
| | | | | | RWMJ: - Fix memory leak in guestfs__inspect_list_applications wrapper. - Don't document app2_spare* fields.
* generator: The default input files are 'generator/ *.ml' [sic].Richard W.M. Jones2012-09-241-1/+1
| | | | | | | | Since generator source files were renamed, the comment at the top of each generated file was wrong. Unfortunately we cannot allow /* to appear within a comment, so the space is necessary.
* New APIs: hivex_*Richard W.M. Jones2012-08-292-0/+4
| | | | | | | | | | | Transscribe many hivex(3) APIs into the libguestfs API. There is one hive handle per libguestfs handle, as with Augeas. Note that hivex uses iconv_open for some APIs (eg. hivex_value_string). But since we delete all the i18n files from the appliance, this doesn't work -- iconv_open returns EINVAL. Therefore hivex APIs which require iconv cannot be bound in the daemon.
* java: Further java/java-home fixes.Richard W.M. Jones2012-08-292-3/+3
| | | | | | In particular the JVM executable is now called $JAVA_EXE. This fixes commit 40b9c14ca9af3b31ea1cf5336142d63313bbae39.
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-211-0/+1
| | | | | | | | | | This adds standard LICENSE and BUGS sections to all of the man pages that are processed by podwrapper. Modify all the calls to $(PODWRAPPER) to add the right --license parameter according to the content. Note that this relaxes the license on some code example pages, making them effectively BSD-style licensed.
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-211-18/+1
| | | | | | | | | | section. Ensure each man page contains consistent COPYRIGHT and AUTHOR sections. Remove the LICENSE section. We will add that back in podwrapper in a later commit.
* Replace mount-options with mount where appropriate.Richard W.M. Jones2012-08-181-1/+1
| | | | | | Since our minimum supported version is now 1.16 and mount was fixed in 1.13.16, it is now safe to replace mount-options + empty options with mount wherever it occurs.
* examples: Use add_drive_opts function in examples.Richard W.M. Jones2012-08-023-3/+3
| | | | | | | | | | | | In libguestfs 1.20, you will be able to use 'add_drive' instead of 'add_drive_opts' (except in the C bindings). However until libguestfs 1.20 is the minimum stable version people will still be using old versions where you have to use 'add_drive_opts'. This makes the examples confusing. Therefore continue to use 'add_drive_opts' in the examples for now.
* New API: utsnameRichard W.M. Jones2012-07-302-0/+2
| | | | | | | | | | Typical output: ><fs> utsname uts_sysname: Linux uts_release: 3.5.0-1.fc18.x86_64 uts_version: #1 SMP Mon Jul 23 17:43:39 UTC 2012 uts_machine: x86_64
* java: Set '-encoding utf8' for javac and javadoc commands.Richard W.M. Jones2012-07-232-2/+3
|
* java: JAVAC_FLAGS -> EXTRA_JAVAC_FLAGS.Richard W.M. Jones2012-07-232-0/+4
| | | | This is just a rename.
* New API: add new api xfs_infoWanlong Gao2012-07-182-0/+2
| | | | | | | | | | | | Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Updated po/POTFILES. - Use xfs_ prefix for all struct fields. - Return uninitialized fields as -1 / empty string. - Copyedit the description.
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-07-161-1/+1
| | | | | This will allow us to easily change the location of this script in future.
* generator: Rename 'add_drive_opts' API to 'add_drive'.Richard W.M. Jones2012-07-144-7/+7
| | | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit).
* java: Generate overloaded non-optargs method for each optargs method.Richard W.M. Jones2012-07-132-2/+2
| | | | | | | | | | | | | | For example the existing method: public void mkfs_opts (String fstype, String device, Map<..> optargs); is now accompanied by this overloaded method which is a simple wrapper: public void mkfs_opts (String fstype, String device) throws LibGuestFSException { mkfs_opts (fstype, device, null); }
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-032-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* examples: In create_disk example, don't call set_autosync.Richard W.M. Jones2012-07-031-8/+0
| | | | | This is now set by default in all supported versions of libguestfs. It's just confusing if the examples refer to it.
* java: Use run --tests for tests.Richard W.M. Jones2012-06-281-6/+2
| | | | Java-specific environment variables are set in the run script.
* build: Define builddir and abs_srcdir when they are missing.Richard W.M. Jones2012-06-181-3/+3
| | | | | | | | | | | | | | | | | | | | | RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done
* New btrfs APIs.Richard W.M. Jones2012-04-252-0/+2
| | | | | | | | | | | | | | | | Bind the easy parts of the 'btrfs' program. The new APIs are: btrfs-device-add: add devices to a btrfs filesystem btrfs-device-delete: remove devices from a btrfs filesystem btrfs-filesystem-sync: sync a btrfs filesystem btrfs-filesystem-balance: balance a btrfs filesystem btrfs-subvolume-create: create a btrfs snapshot btrfs-subvolume-delete: delete a btrfs snapshot btrfs-subvolume-list: list btrfs snapshots and subvolumes btrfs-subvolume-set-default: set default btrfs subvolume btrfs-subvolume-snapshot: create a writable btrfs snapshot
* Fix out-of-tree build for Java bindingsHilko Bengen2012-03-281-2/+2
|
* java: Delete target file before running javah.Richard Jones2012-03-281-0/+1
| | | | | | javah from old GNU classpath won't overwrite the target *.h file, instead leaving the old one which results in a predictable build failure. Delete the target so this won't happen.
* New API: md-stat.Richard W.M. Jones2012-03-202-0/+2
| | | | | This returns information about the underlying devices of an MD (software RAID) device.
* generator: Generate a .gitignore file specifically for java structs.Richard W.M. Jones2012-03-201-0/+13
|
* generator: Sort camel-case structs.Richard W.M. Jones2012-03-161-7/+7
|
* New APIs: isoinfo and isoinfo-device.Richard W.M. Jones2012-03-161-0/+1
| | | | | Get ISO primary volume descriptor information for either ISO devices or ISO files.
* java: Make sure generator is rerun when necessary to rebuild generated files.Richard W.M. Jones2012-03-141-9/+7
|
* java: Make use of JAR_INSTALL_DIR, JNI_INSTALL_DIRHilko Bengen2012-02-081-1/+2
|
* maint: use $var notation rather than ${var} when possibleJim Meyering2012-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed some uses of ${srcdir} in shell scripts. That is almost always better written as $srcdir. The patch below converts most such variable references. Here are the few remaining candidates: $ git grep -i -E '\$\{[a-zA-Z_0-9]+\}'|grep -v Makefile.in.in configure.ac: JAR_INSTALL_DIR=\${prefix}/share/java configure.ac: JNI_INSTALL_DIR=\${libdir} debian/rules: for TEST in ${DEBIAN_SKIP_TEST}; do \ debian/rules:# mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \ java/Makefile.am:libguestfs_jar_DATA = libguestfs-${VERSION}.jar java/Makefile.am:libguestfs-${VERSION}.jar: $(libguestfs_jar_class_files) perl/lib/Sys/Guestfs/Lib.pm: "-f", '${Package} ${Version} ${Architecture} ${Status}\n', perl/typemap: croak (\"${Package}::$func_name(): called on a closed handle\"); perl/typemap: croak (\"${Package}::$func_name(): $var is not a blessed HV reference\"); tests/data/Makefile.am: echo "$${i}abcdefghijklmnopqrstuvwxyz"; \ We could change all of those, too, except the ones in configure.ac and Makefile.am, since they refer to Make variables. Even those should be changed, but to use the preferred Makefile notation: $(prefix), $(libdir), $(VERSION). >From a86770ecd45666232a94d76c8725c8f9b1c76e3a Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Mon, 23 Jan 2012 11:15:12 +0100 Subject: [PATCH libguestfs] maint: use $var notation rather than ${var} when possible The only case to avoid in a shell script is when the byte after the "}" is word-constituent, and concatenating it would thus change the name of the variable. These changes were induced by running this command: git grep -l -i -E '\$\{(srcdir|md)' \ |xargs perl -pi -e 's/\$\{(srcdir|md)\}($|\w)/\$$1$2/gi' The "g" was needed because there was one line with two instances. The "i" is to handle ${SRCDIR}. The ($|\w) ensures that concatenating whatever follows the "}" won't change semantics. * gobject/run-bindtests: Use "$srcdir", not "${srcdir}". * haskell/run-bindtests: Likewise. * java/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * perl/run-bindtests: Likewise. * python/run-bindtests: Likewise. * ruby/run-bindtests: Likewise. * tests/guests/guest-aux/make-debian-img.sh: Likewise, but $SRCDIR. * tests/guests/guest-aux/make-ubuntu-img.sh: Likewise. * tests/guests/guest-aux/make-windows-img.sh: Likewise. * tests/md/test-mdadm.sh: Likewise, but $md.
* Do not run appliance-related checks if not building applianceHilko Bengen2012-01-231-1/+5
|
* Tempus fugit.Richard W.M. Jones2012-01-182-2/+2
| | | | Update all copyright dates to 2012.
* Tempora mutantur, nos et mutamur in illis.Matthew Booth2012-01-041-1/+1
|
* java: out-of-tree build, don't build static libraryHilko Bengen2011-11-161-3/+4
|
* Update FSF address.Matthew Booth2011-11-084-4/+4
|
* out-of-tree build: fixed bindtests and inspectorHilko Bengen2011-10-211-1/+1
|
* Add Erlang bindings.Richard W.M. Jones2011-09-211-0/+1
|
* out-of-tree build: fix documentation generationHilko Bengen2011-08-151-3/+3
|
* build: Set TMPDIR for local testing.Richard W.M. Jones2011-08-081-1/+2
| | | | | | This avoids conflicts with the globally installed libguestfs appliance, or lets us build in multiple local directories at the same time without conflicts.
* java: Add guestfs-java(3) man page.Richard W.M. Jones2011-07-195-0/+318
|
* java: Fix optional arguments in calls.Richard W.M. Jones2011-07-193-2/+66
| | | | This also adds tests.
* java: Enable warnings when compiling C bindings code.Richard W.M. Jones2011-07-191-1/+4
| | | | And fix the code so it doesn't generate warnings.
* java: Add a test of g.list_filesystems (a function that returns a Map).Richard W.M. Jones2011-03-021-0/+10
|
* java: Remove old test file if one was left around.Richard W.M. Jones2011-03-021-0/+4
| | | | | | If a test.img file was left over from a previous run, then it would cause the subsequent test to fail. Therefore remove any old test.img file.
* java: Enable assertions when doing 'make check'.Richard W.M. Jones2011-03-021-2/+2
| | | | | | | | | | | It turns out that Java assertions are disabled by default. You have to add the 'java -ea' flag to the JVM. Who knew ..? Because of this oversight, the tests weren't actually performing the assertions that we wanted (although in fact none of the assertions were failing). This change enables assertions when running the tests.
* Tempora mutantur, nos et mutamur in illis.Richard W.M. Jones2011-01-021-1/+1
|
* java: Combine tests to reduce number of launches.Richard W.M. Jones2010-11-303-48/+5
|
* New API: inspect-list-applications.Richard W.M. Jones2010-11-151-0/+1
| | | | | | | | This converts the current Perl code in virt-inspector for listing applications, into C, making it a part of the core API. This is also capable of fetching the list of Windows applications from the registry.
* Split generator into separate source files.Richard Jones2010-09-111-1/+1
| | | | | | | | | | 'src/generator.ml' is no more. Instead the generator is logically split up over many different source files. Read generator/README for help and tips. We compile the generator down to bytecode, not native code. This means it will run more slowly, but is done for maximum portability.
* Update copyright years.Richard Jones2010-01-021-1/+1
|