diff options
author | Richard Jones <rjones@redhat.com> | 2009-06-08 17:44:18 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-06-08 17:44:18 +0100 |
commit | 460d139e6a52da67a4f1947035b1978610349f78 (patch) | |
tree | 798177aa71bc9615074cd1a9a351ff4b38165c7c /java/com/redhat/et/libguestfs/GuestFS.java | |
parent | 3de234656bc61a2d35b0f1a9ccb1e6ef7535166b (diff) | |
download | libguestfs-460d139e6a52da67a4f1947035b1978610349f78.tar.gz libguestfs-460d139e6a52da67a4f1947035b1978610349f78.tar.xz libguestfs-460d139e6a52da67a4f1947035b1978610349f78.zip |
Generated code for ntfs_3g_probe command.
Diffstat (limited to 'java/com/redhat/et/libguestfs/GuestFS.java')
-rw-r--r-- | java/com/redhat/et/libguestfs/GuestFS.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/java/com/redhat/et/libguestfs/GuestFS.java b/java/com/redhat/et/libguestfs/GuestFS.java index 3f03d754..d29ae54f 100644 --- a/java/com/redhat/et/libguestfs/GuestFS.java +++ b/java/com/redhat/et/libguestfs/GuestFS.java @@ -3354,4 +3354,33 @@ public HashMap<String,String> test0rhashtableerr () private native void _sleep (long g, int secs) throws LibGuestFSException; + /** + * probe NTFS volume + * <p> + * This command runs the ntfs-3g.probe(8) command which + * probes an NTFS "device" for mountability. (Not all NTFS + * volumes can be mounted read-write, and some cannot be + * mounted at all). + * <p> + * "rw" is a boolean flag. Set it to true if you want to + * test if the volume can be mounted read-write. Set it to + * false if you want to test if the volume can be mounted + * read-only. + * <p> + * The return value is an integer which 0 if the operation + * would succeed, or some non-zero value documented in the + * ntfs-3g.probe(8) manual page. + * <p> + * @throws LibGuestFSException + */ + public int ntfs_3g_probe (boolean rw, String device) + throws LibGuestFSException + { + if (g == 0) + throw new LibGuestFSException ("ntfs_3g_probe: handle is closed"); + return _ntfs_3g_probe (g, rw, device); + } + private native int _ntfs_3g_probe (long g, boolean rw, String device) + throws LibGuestFSException; + } |