Lines Matching refs:mode
171 * The attach mode specifies the access permissions requested for the
181 * machine. This mode is currently not supported and is reserved for
187 * @param mode a string indicating the attach mode.
189 * @throws IllegalArgumentException The lvmid or mode was invalid.
196 public ByteBuffer attach(int lvmid, String mode)
199 if (mode.compareTo("r") == 0) {
202 else if (mode.compareTo("rw") == 0) {
206 throw new IllegalArgumentException("unknown mode");
214 * This method behaves just as the <code>attach(int lvmid, String mode)
223 * @param mode a string indicating the attach mode.
225 * @throws IllegalArgumentException The lvmid or mode was invalid.
232 public ByteBuffer attach(String user, int lvmid, String mode)
235 if (mode.compareTo("r") == 0) {
238 else if (mode.compareTo("rw") == 0) {
242 throw new IllegalArgumentException("unknown mode");
259 * @param mode a string indicating the attach mode.
261 * @throws IllegalArgumentException The lvmid or mode was invalid.
267 private ByteBuffer attachImpl(String user, int lvmid, int mode)
270 final ByteBuffer b = attach(user, lvmid, mode);
318 * @param mode a string indicating the attach mode.
320 * @throws IllegalArgumentException The lvmid or mode was invalid.
326 private native ByteBuffer attach(String user, int lvmid, int mode)