libdm is small static library that is intended to be the one source to control device mapper. It is intended to have APIs to create, control and destroy device mapper targets. Eventually, all fs_mgr implementation that talks to device mapper will be moved to using libdm APIs. Added 'dmctl', a command line tool that lists the registered device mapper targets and their corresponding version. The tool will continue to get new features to exemplify new APIs implemented in libdm. The library is intentionally static and folds into libfs_mgr. All clients must link to libfs_mgr as a result. Test: dmctl list Bug: 110035986 Change-Id: I71e7146073a74e7523524bf3b20d0be6d06f9fad Signed-off-by: Sandeep Patil <sspatil@google.com>
31 lines
816 B
Text
31 lines
816 B
Text
//
|
|
// Copyright (C) 2018 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
cc_binary {
|
|
name: "dmctl",
|
|
srcs: ["dmctl.cpp"],
|
|
|
|
static_libs: [
|
|
"libfs_mgr",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
],
|
|
|
|
cflags: ["-Werror"],
|
|
}
|