]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/ext4/ext4fs.c
dm: Adjust lists_bind_fdt() to return the bound device
[karo-tx-uboot.git] / fs / ext4 / ext4fs.c
index 735b2564175b1e85a08d8e5bfce5704491ea6b26..cbdc22026deb63a24968cbd3c0078407940bc5a2 100644 (file)
@@ -174,6 +174,19 @@ int ext4fs_ls(const char *dirname)
        return 0;
 }
 
+int ext4fs_exists(const char *filename)
+{
+       int file_len;
+
+       file_len = ext4fs_open(filename);
+       return file_len >= 0;
+}
+
+int ext4fs_size(const char *filename)
+{
+       return ext4fs_open(filename);
+}
+
 int ext4fs_read(char *buf, unsigned len)
 {
        if (ext4fs_root == NULL || ext4fs_file == NULL)