]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hfsplus/dir.c
hfsplus: add support of manipulation by attributes file
[karo-tx-linux.git] / fs / hfsplus / dir.c
index 6b9f921ef2fa178d75ed2e24d0e7a2a424fbf4d2..40ceeab165d5ad3d1423e3e9b295ffa23f369a40 100644 (file)
@@ -138,7 +138,7 @@ static int hfsplus_readdir(struct file *filp, void *dirent, filldir_t filldir)
        if (err)
                return err;
        hfsplus_cat_build_key(sb, fd.search_key, inode->i_ino, NULL);
-       err = hfs_brec_find(&fd);
+       err = hfs_brec_find(&fd, hfs_find_rec_by_key);
        if (err)
                goto out;
 
@@ -508,6 +508,10 @@ const struct inode_operations hfsplus_dir_inode_operations = {
        .symlink        = hfsplus_symlink,
        .mknod          = hfsplus_mknod,
        .rename         = hfsplus_rename,
+       .setxattr       = hfsplus_setxattr,
+       .getxattr       = hfsplus_getxattr,
+       .listxattr      = hfsplus_listxattr,
+       .removexattr    = hfsplus_removexattr,
 };
 
 const struct file_operations hfsplus_dir_operations = {