private final Path root;
private CephFS ceph = null;
- private String fs_default_name;
-
/**
* Create a new CephFileSystem.
*/
* sets the given CephFS instead of defaulting to a
* CephTalker (with its assumed real Ceph instance to talk to).
*/
- public CephFileSystem(CephFS ceph_fs, String default_path) {
+ public CephFileSystem(CephFS ceph_fs) {
super();
root = new Path("/");
ceph = ceph_fs;
- fs_default_name = default_path;
}
/**
if (ceph == null) {
ceph = new CephTalker(conf, LOG);
}
- if (null == fs_default_name) {
- fs_default_name = conf.get("fs.default.name");
- }
// build up the arguments for Ceph
String arguments = "CephFSInterface";
protected void setUp() throws IOException {
Configuration conf = new Configuration();
CephFaker cephfaker = new CephFaker(conf, FileSystem.LOG);
- CephFileSystem cephfs = new CephFileSystem(cephfaker, "ceph://null");
+ CephFileSystem cephfs = new CephFileSystem(cephfaker);
cephfs.initialize(URI.create("ceph://null"), conf);
fs = cephfs;