Skip to content

Commit

Permalink
Merge pull request logrhythm#79 from Robert-Weber/diskDiscovery
Browse files Browse the repository at this point in the history
Disk discovery
  • Loading branch information
Ben Aldrich committed Oct 18, 2013
2 parents a7feba4 + 147d4cf commit b1f156e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions protofiles/CommandRequest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ message CommandRequest {
NETWORK_CONFIG = 3;
NTP_CONFIG = 4;
SHUTDOWN = 5;
DRIVEINFO = 6;
}
required CommandType type = 1;
optional string stringArgOne = 2;
Expand Down
28 changes: 28 additions & 0 deletions protofiles/DriveInfo.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package protoMsg;

option java_package = "com.logrhythm.nm.message";
option java_outer_classname = "DriveInfoMsg";

message DrivesInfo {
message DriveInfo {

message Partition {
optional uint32 number = 1 [default = 0];
optional uint64 startInB = 2 [default = 0];
optional uint64 endInB = 3 [default = 0];
optional uint64 sizeInB = 4 [default = 0];
optional string type = 5;
optional string fileSystem = 6;
optional string flags = 7;
}
optional string model = 1;
optional string device = 2;
optional uint64 capacityInB = 3 [default = 0];
repeated Partition partitions = 4;
optional string table = 5;

}

repeated DriveInfo drives = 1;

}
2 changes: 2 additions & 0 deletions scripts/buildProtoFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ cd "$cppSrcDir"
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/CommandReply.proto
"$protoc" -I="$protoFileDir" --cpp_out=libprocess "$protoFileDir"/ProcessRequest.proto
"$protoc" -I="$protoFileDir" --cpp_out=libprocess "$protoFileDir"/ProcessReply.proto
"$protoc" -I="$protoFileDir" --cpp_out=libcommand "$protoFileDir"/DriveInfo.proto
mv liblrdpi/DpiMsgLRproto.pb.cc liblrdpi/DpiMsgLRproto.pb.cpp
mv liblrdpi/Applications.pb.cc liblrdpi/Applications.pb.cpp
mv libstats/StatsMsg.pb.cc libstats/StatsMsg.pb.cpp
Expand All @@ -81,6 +82,7 @@ mv libcommand/CommandRequest.pb.cc libcommand/CommandRequest.pb.cpp
mv libcommand/CommandReply.pb.cc libcommand/CommandReply.pb.cpp
mv libprocess/ProcessRequest.pb.cc libprocess/ProcessRequest.pb.cpp
mv libprocess/ProcessReply.pb.cc libprocess/ProcessReply.pb.cpp
mv libcommand/DriveInfo.pb.cc libcommand/DriveInfo.pb.cpp
cd "$startDir"

mkdir -p "$phpSrcDir"
Expand Down

0 comments on commit b1f156e

Please sign in to comment.