]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - debugfs/xattrs.c
libext2fs: add ea_inode support to set xattr
[thirdparty/e2fsprogs.git] / debugfs / xattrs.c
index 9b87d14551dca89498c9415415692f8bdeae2757..fdb76e41a230c1236ec846c8dc4d086a5d15f1d6 100644 (file)
@@ -306,13 +306,6 @@ void do_set_xattr(int argc, char **argv)
        }
 
        err = ext2fs_xattr_set(h, argv[optind + 1], buf, buflen);
-       if (err)
-               goto out;
-
-       err = ext2fs_xattrs_write(h);
-       if (err)
-               goto out;
-
 out:
        ext2fs_xattrs_close(&h);
        if (err)
@@ -360,10 +353,6 @@ void do_rm_xattr(int argc, char **argv)
                if (err)
                        goto out;
        }
-
-       err = ext2fs_xattrs_write(h);
-       if (err)
-               goto out;
 out:
        ext2fs_xattrs_close(&h);
        if (err)