On Oct 24, 2013, at 4:46 PM, Karl Kiniger <karl.kini...@med.ge.com> wrote:
> On Thu 131024, Chris Murphy wrote: >> dr--------. 1 chris chris 0 Oct 24 16:15 donotmove >> >> [chris@f20s ~]$ mv donotmove/ Videos/ >> mv: cannot move ‘donotmove/’ to ‘Videos/donotmove’: Permission denied' >> >> I own that directory. But because it's read only, I can't move it because >> moving it changes it. Of course if I become root, that overrides posix >> permissions, but the readonly status of a subvolume isn't like posix >> permissions and I see now reason why root should be able to modify it. And >> moving it does modify it. > > tries this all as root. > > drwxr-xr-x. 1 root root 734 Oct 24 16:41 @20131024 (this is a r/o snap) > > It looks to me similar to a read-only mounted filesystem: > > pc2:/u2/F19/@20131024# touch foo > touch: cannot touch ‘foo’: Read-only file system > > In what way would a r/o snapshot be modified because of moving its > "mount point" ? No one is ever doing something inside. For the same reason I can't move or rename a read only directory even though I'm not doing something inside. Chris Murphy-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html