Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I85149e776c38a67ef6d2e72624bd8a7d78727f13
#include <klay/file-user.h>
#include <klay/filesystem.h>
-#include <iostream>
-
namespace runtime {
bool FileUser::isUsedAsFD(const std::string &filePath, const pid_t pid, bool isMount)
for (runtime::DirectoryIterator iter(path), end; iter != end;) {
File cur(File((++iter)->getPath()).readlink());
- std::cout << cur.getPath() << std::endl;
try {
if ((cur.getInode() == file.getInode() || isMount) &&
cur.getDevice() == file.getDevice()) {