From e9cd798bd372741753efcba2af594b00fe7b8437 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 13 Dec 2020 00:58:58 -0800 Subject: adding volume type --- other/java/client/src/main/proto/filer.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'other/java/client/src') diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto index c046e48f3..ba49e420f 100644 --- a/other/java/client/src/main/proto/filer.proto +++ b/other/java/client/src/main/proto/filer.proto @@ -156,6 +156,7 @@ message FuseAttributes { repeated string group_name = 12; // for hdfs string symlink_target = 13; bytes md5 = 14; + string volume_type = 15; } message CreateEntryRequest { @@ -220,6 +221,7 @@ message AssignVolumeRequest { string data_center = 5; string path = 6; string rack = 7; + string volume_type = 8; } message AssignVolumeResponse { @@ -270,11 +272,9 @@ message StatisticsRequest { string replication = 1; string collection = 2; string ttl = 3; + string volume_type = 4; } message StatisticsResponse { - string replication = 1; - string collection = 2; - string ttl = 3; uint64 total_size = 4; uint64 used_size = 5; uint64 file_count = 6; -- cgit v1.2.3 From 0d2ec832e2ced90371f2c5549b175d5b93becd1a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 13 Dec 2020 11:59:32 -0800 Subject: rename from volumeType to diskType --- other/java/client/src/main/proto/filer.proto | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'other/java/client/src') diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto index ba49e420f..fe26cca15 100644 --- a/other/java/client/src/main/proto/filer.proto +++ b/other/java/client/src/main/proto/filer.proto @@ -358,12 +358,7 @@ message FilerConf { string collection = 2; string replication = 3; string ttl = 4; - enum DiskType { - NONE = 0; - HDD = 1; - SSD = 2; - } - DiskType disk_type = 5; + string disk_type = 5; bool fsync = 6; uint32 volume_growth_count = 7; } -- cgit v1.2.3 From 94525aa0fdb8ecbb3f2adf1d9a04bb1572540700 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 13 Dec 2020 23:08:21 -0800 Subject: allocate volume by disk type --- other/java/client/src/main/proto/filer.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'other/java/client/src') diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto index fe26cca15..ac4c9a0e7 100644 --- a/other/java/client/src/main/proto/filer.proto +++ b/other/java/client/src/main/proto/filer.proto @@ -156,7 +156,7 @@ message FuseAttributes { repeated string group_name = 12; // for hdfs string symlink_target = 13; bytes md5 = 14; - string volume_type = 15; + string disk_type = 15; } message CreateEntryRequest { @@ -221,7 +221,7 @@ message AssignVolumeRequest { string data_center = 5; string path = 6; string rack = 7; - string volume_type = 8; + string disk_type = 8; } message AssignVolumeResponse { @@ -272,7 +272,7 @@ message StatisticsRequest { string replication = 1; string collection = 2; string ttl = 3; - string volume_type = 4; + string disk_type = 4; } message StatisticsResponse { uint64 total_size = 4; -- cgit v1.2.3