summaryrefslogtreecommitdiff
path: root/src/java/FileCowCopier.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2024-01-20 00:37:36 +0800
committerKeuin <[email protected]>2024-01-20 01:44:12 +0800
commite3d0f924a416365ea12d8ace8569664cbb09dba5 (patch)
tree662d352bc0e2a5f2fdf404d566b2381a3ea9927a /src/java/FileCowCopier.java
initial versionHEADmaster
Diffstat (limited to 'src/java/FileCowCopier.java')
-rw-r--r--src/java/FileCowCopier.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/java/FileCowCopier.java b/src/java/FileCowCopier.java
new file mode 100644
index 0000000..7295307
--- /dev/null
+++ b/src/java/FileCowCopier.java
@@ -0,0 +1,19 @@
+package com.keuin.kbackupfabric.util.cow;
+
+
+public final class FileCowCopier {
+
+ public static native void init();
+
+ public static native void copy(String dst, String src);
+
+ public static native String getVersion();
+
+ public static void main(String[] args) {
+ System.loadLibrary("kbackup_cow");
+ FileCowCopier.init();
+ System.out.println("kbackup-cow version: " + FileCowCopier.getVersion());
+ FileCowCopier.copy("b", "a");
+ }
+
+}