[ Version ( since = "1.0.43" ) ]
public int32 ntfs_3g_probe (bool rw, string device) throws Error
probe NTFS volume
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).
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.
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.
This function depends on the feature "ntfs3g". See also feature_available .
this |
A GuestfsSession object |
the returned value, or -1 on error |