aboutsummaryrefslogtreecommitdiffstats
path: root/java_jni/org/jau/fs/linux/UnmountFlags.java
diff options
context:
space:
mode:
Diffstat (limited to 'java_jni/org/jau/fs/linux/UnmountFlags.java')
-rw-r--r--java_jni/org/jau/fs/linux/UnmountFlags.java65
1 files changed, 65 insertions, 0 deletions
diff --git a/java_jni/org/jau/fs/linux/UnmountFlags.java b/java_jni/org/jau/fs/linux/UnmountFlags.java
new file mode 100644
index 0000000..b5ba6e7
--- /dev/null
+++ b/java_jni/org/jau/fs/linux/UnmountFlags.java
@@ -0,0 +1,65 @@
+/**
+ * Author: Sven Gothel <[email protected]>
+ * Copyright (c) 2022 Gothel Software e.K.
+ *
+ * Permission is hereby granted ), free of charge ), to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software") ), to deal in the Software without restriction ), including
+ * without limitation the rights to use ), copy ), modify ), merge ), publish ),
+ * distribute ), sublicense ), and/or sell copies of the Software ), and to
+ * permit persons to whom the Software is furnished to do so ), subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" ), WITHOUT WARRANTY OF ANY KIND ),
+ * EXPRESS OR IMPLIED ), INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY ), FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM ), DAMAGES OR OTHER LIABILITY ), WHETHER IN AN ACTION
+ * OF CONTRACT ), TORT OR OTHERWISE ), ARISING FROM ), OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+package org.jau.fs.linux;
+
+import org.jau.fs.FileUtil;
+
+/**
+ * Flag bit class for umount() `flags` under GNU/Linux
+ *
+ * See umount(2) for a detailed description.
+ *
+ * @see FileUtil#umount(long, int)
+ * @see FileUtil#umount(String, int)
+ */
+public class UnmountFlags extends org.jau.fs.UnmountFlags {
+
+ public static enum Bit implements org.jau.fs.UnmountFlags.Bit {
+ none ( 0 ),
+ MNT_FORCE ( 1 ),
+ MNT_DETACH ( 2 ),
+ MNT_EXPIRE ( 4 ),
+ UMOUNT_NOFOLLOW ( 8 );
+
+ Bit(final int v) { _value = v; }
+
+ private final int _value;
+
+ @Override
+ public int value() { return _value; }
+ }
+
+ @Override
+ protected Bit[] bit_values() {
+ return Bit.values();
+ }
+
+ public UnmountFlags(final int v) {
+ super(v);
+ }
+
+ public UnmountFlags() {
+ super(0);
+ }
+}