Re: Why cannot I move a read-only snapshot around?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Karl

> Chris Murphy

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux