|
From: <fd...@us...> - 2008-02-05 22:56:56
|
Revision: 3763
http://jnode.svn.sourceforge.net/jnode/?rev=3763&view=rev
Author: fduminy
Date: 2008-02-05 14:56:51 -0800 (Tue, 05 Feb 2008)
Log Message:
-----------
added getType() method to FileSystem interface
Modified Paths:
--------------
trunk/fs/src/fs/org/jnode/fs/service/def/VirtualFS.java
trunk/fs/src/fs/org/jnode/fs/smbfs/SMBFileSystem.java
Modified: trunk/fs/src/fs/org/jnode/fs/service/def/VirtualFS.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/service/def/VirtualFS.java 2008-02-05 22:56:13 UTC (rev 3762)
+++ trunk/fs/src/fs/org/jnode/fs/service/def/VirtualFS.java 2008-02-05 22:56:51 UTC (rev 3763)
@@ -27,6 +27,7 @@
import org.jnode.driver.Device;
import org.jnode.fs.FSEntry;
import org.jnode.fs.FileSystem;
+import org.jnode.fs.FileSystemType;
/**
* @author Ewout Prangsma (ep...@us...)
@@ -37,6 +38,11 @@
private final Device dev;
private final VirtualDirEntry root;
+ final public FileSystemType<FileSystem<VirtualDirEntry>> getType()
+ {
+ throw new UnsupportedOperationException("should not be called");
+ }
+
/**
* Initialize this instance.
* @throws IOException
Modified: trunk/fs/src/fs/org/jnode/fs/smbfs/SMBFileSystem.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/smbfs/SMBFileSystem.java 2008-02-05 22:56:13 UTC (rev 3762)
+++ trunk/fs/src/fs/org/jnode/fs/smbfs/SMBFileSystem.java 2008-02-05 22:56:51 UTC (rev 3763)
@@ -21,14 +21,14 @@
package org.jnode.fs.smbfs;
-import org.jnode.fs.FileSystem;
-
import java.io.IOException;
import jcifs.smb.NtlmAuthenticator;
import jcifs.smb.NtlmPasswordAuthentication;
import jcifs.smb.SmbFile;
+import org.jnode.fs.FileSystem;
+
/**
* @author Levente S\u00e1ntha
*/
@@ -47,6 +47,10 @@
}
}
+ final public SMBFileSystemType getType() {
+ return SMBFileSystemType.getInstance();
+ }
+
protected NtlmPasswordAuthentication getNtlmPasswordAuthentication() {
return new NtlmPasswordAuthentication( "", device.getUser(), device.getPassword() );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|