#ifndef DAMAGE_TABLE_H_
#define DAMAGE_TABLE_H_
+#include <boost/utility/string_view.hpp>
+
#include "mdstypes.h"
#include "auth/Crypto.h"
}
}
- DentryIdent(const std::string &dname_, snapid_t snap_id_)
+ DentryIdent(boost::string_view dname_, snapid_t snap_id_)
: dname(dname_), snap_id(snap_id_)
{}
};
*
* @return true if fatal
*/
- bool notify_dirfrag(inodeno_t ino, frag_t frag, const std::string &path);
+ bool notify_dirfrag(inodeno_t ino, frag_t frag, boost::string_view path);
/**
* Indicate that a particular dentry cannot be loaded.
*/
bool notify_dentry(
inodeno_t ino, frag_t frag,
- snapid_t snap_id, const std::string &dname, const std::string &path);
+ snapid_t snap_id, boost::string_view dname, boost::string_view path);
/**
* Indicate that a particular Inode could not be loaded by number
*/
bool notify_remote_damaged(
- inodeno_t ino, const std::string &path);
+ inodeno_t ino, boost::string_view path);
bool is_dentry_damaged(
const CDir *dir_frag,
- const std::string &dname,
+ boost::string_view dname,
const snapid_t snap_id) const;
bool is_dirfrag_damaged(