]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/fs-io.c
Update bcachefs sources to d267e10a43b2 bcachefs: __bch2_sb_field_to_text()
[bcachefs-tools-debian] / libbcachefs / fs-io.c
index 98bd5babab193bec842dce20b0783e6c958ac5bf..9fea89762df01dd64b6d8e6463b237d34a106c3a 100644 (file)
@@ -194,6 +194,16 @@ int bch2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
        struct bch_fs *c = inode->v.i_sb->s_fs_info;
        int ret;
 
+       /*
+        * check if unlinked, disable/defer until relink
+        */
+
+       /*
+        * also: add a mode where a file is a tmpfile until fully,
+        * asynchronously written
+        */
+
+
        ret = file_write_and_wait_range(file, start, end);
        if (ret)
                goto out;