Commit 729c72c1 authored by Ramon Nou's avatar Ramon Nou
Browse files

bad sign

parent 080eff0b
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ namespace gkfs::syscall {
 * @return 0 on success, -1 on failure
 */
int
gkfs_open(const std::string& path, mode_t mode, int flags, bool force) {
gkfs_open(const std::string& path, mode_t mode, int flags) {
    // metadata object filled during create or stat
    gkfs::metadata::Metadata md{};
    if(flags & O_CREAT) {
@@ -156,7 +156,7 @@ gkfs_open(const std::string& path, mode_t mode, int flags, bool force) {
                md = *md_;
#ifdef HAS_RENAME
                // This is an old file that was renamed which we do not open
                if(md.blocks() == -1 and !force) {
                if(md.blocks() == -1) {
                    LOG(DEBUG,
                        "This file was renamed and we do not open. path '{}'",
                        path);