Skip to content

Commit 12b1a56

Browse files
authored
Merge pull request ceph#52144 from linuxbox2/wip-nochown-bucket
rgw/file: make setattr(...) a no-op on buckets Reviewed-by: Daniel Gryniewicz <[email protected]>
2 parents 8da4ba8 + c53f3bc commit 12b1a56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rgw/rgw_file.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,10 @@ namespace rgw {
901901
}
902902
break;
903903
default:
904+
if (unlikely(rgw_fh->is_bucket())) {
905+
/* treat buckets like immutable, namespace roots */
906+
return 0; /* it's not an error, we just won't do it */
907+
}
904908
break;
905909
};
906910

0 commit comments

Comments
 (0)