From 9dc5c365ce1aaa16a73d73e3ea9075c0ae3f5080 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 6 Aug 2008 17:29:45 -0700 Subject: [PATCH] ebofs: allow attr updates on cloned objects --- src/ebofs/Ebofs.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/ebofs/Ebofs.cc b/src/ebofs/Ebofs.cc index 8bb67918fb664..3f58ddc3e057f 100644 --- a/src/ebofs/Ebofs.cc +++ b/src/ebofs/Ebofs.cc @@ -3167,10 +3167,6 @@ int Ebofs::_setattr(pobject_t oid, const char *name, const void *value, size_t s Onode *on = get_onode(oid); if (!on) return -ENOENT; - if (on->readonly) { - put_onode(on); - return -EACCES; - } string n(name); on->attr[n] = buffer::copy((char*)value, size); @@ -3211,10 +3207,6 @@ int Ebofs::_setattrs(pobject_t oid, map& attrset) Onode *on = get_onode(oid); if (!on) return -ENOENT; - if (on->readonly) { - put_onode(on); - return -EACCES; - } on->attr = attrset; dirty_onode(on); @@ -3348,10 +3340,6 @@ int Ebofs::_rmattr(pobject_t oid, const char *name) Onode *on = get_onode(oid); if (!on) return -ENOENT; - if (on->readonly) { - put_onode(on); - return -EACCES; - } string n(name); on->attr.erase(n); -- 2.39.5