mirror of
https://github.com/Maschell/fuse-wiiu.git
synced 2024-11-25 15:56:53 +01:00
Some minor cleanup
This commit is contained in:
parent
967f137ea4
commit
7900c26e50
@ -4,7 +4,6 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Paths;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
@ -23,7 +22,6 @@ import de.mas.wiiu.jnus.fuse_wiiu.interfaces.FuseContainer;
|
|||||||
import de.mas.wiiu.jnus.fuse_wiiu.utils.FuseContainerWrapper;
|
import de.mas.wiiu.jnus.fuse_wiiu.utils.FuseContainerWrapper;
|
||||||
import de.mas.wiiu.jnus.utils.HashUtil;
|
import de.mas.wiiu.jnus.utils.HashUtil;
|
||||||
import de.mas.wiiu.jnus.utils.Utils;
|
import de.mas.wiiu.jnus.utils.Utils;
|
||||||
import jnr.ffi.Platform;
|
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
private static final String DEV_COMMON_KEY = "devcommon.key";
|
private static final String DEV_COMMON_KEY = "devcommon.key";
|
||||||
|
@ -1,31 +1,13 @@
|
|||||||
package de.mas.wiiu.jnus.fuse_wiiu;
|
package de.mas.wiiu.jnus.fuse_wiiu;
|
||||||
|
|
||||||
import com.kenai.jffi.MemoryIO;
|
|
||||||
|
|
||||||
import de.mas.wiiu.jnus.fuse_wiiu.interfaces.FuseContainer;
|
import de.mas.wiiu.jnus.fuse_wiiu.interfaces.FuseContainer;
|
||||||
import jnr.ffi.Pointer;
|
import jnr.ffi.Pointer;
|
||||||
import jnr.ffi.Runtime;
|
|
||||||
import jnr.ffi.Struct;
|
|
||||||
import jnr.ffi.types.dev_t;
|
|
||||||
import jnr.ffi.types.gid_t;
|
|
||||||
import jnr.ffi.types.mode_t;
|
|
||||||
import jnr.ffi.types.off_t;
|
import jnr.ffi.types.off_t;
|
||||||
import jnr.ffi.types.size_t;
|
import jnr.ffi.types.size_t;
|
||||||
import jnr.ffi.types.u_int32_t;
|
|
||||||
import jnr.ffi.types.uid_t;
|
|
||||||
import ru.serce.jnrfuse.ErrorCodes;
|
|
||||||
import ru.serce.jnrfuse.FuseFillDir;
|
import ru.serce.jnrfuse.FuseFillDir;
|
||||||
import ru.serce.jnrfuse.FuseStubFS;
|
import ru.serce.jnrfuse.FuseStubFS;
|
||||||
import ru.serce.jnrfuse.NotImplemented;
|
|
||||||
import ru.serce.jnrfuse.flags.FuseBufFlags;
|
|
||||||
import ru.serce.jnrfuse.struct.FileStat;
|
import ru.serce.jnrfuse.struct.FileStat;
|
||||||
import ru.serce.jnrfuse.struct.Flock;
|
|
||||||
import ru.serce.jnrfuse.struct.FuseBuf;
|
|
||||||
import ru.serce.jnrfuse.struct.FuseBufvec;
|
|
||||||
import ru.serce.jnrfuse.struct.FuseFileInfo;
|
import ru.serce.jnrfuse.struct.FuseFileInfo;
|
||||||
import ru.serce.jnrfuse.struct.FusePollhandle;
|
|
||||||
import ru.serce.jnrfuse.struct.Statvfs;
|
|
||||||
import ru.serce.jnrfuse.struct.Timespec;
|
|
||||||
|
|
||||||
public class RootFuseFS extends FuseStubFS {
|
public class RootFuseFS extends FuseStubFS {
|
||||||
|
|
||||||
|
@ -105,7 +105,6 @@ public class FSTDataProviderContainer implements FuseContainer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int read(String path, Pointer buf, long size, long offset, FuseFileInfo fi) {
|
public int read(String path, Pointer buf, long size, long offset, FuseFileInfo fi) {
|
||||||
System.out.println("read " + path);
|
|
||||||
Optional<FSTEntry> entryopt = FSTUtils.getFSTEntryByFullPath(getDataProvider().getRoot(), path);
|
Optional<FSTEntry> entryopt = FSTUtils.getFSTEntryByFullPath(getDataProvider().getRoot(), path);
|
||||||
if (entryopt.isPresent() && !entryopt.get().isNotInPackage()) {
|
if (entryopt.isPresent() && !entryopt.get().isNotInPackage()) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user