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

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

 



On Oct 24, 2013, at 3:57 PM, Karl Kiniger <karl.kiniger@xxxxxxxxxx> wrote:
> 
> Yes they are read only snapshots (just received by btrfs receive) and
> "readonly" is a regular directory. I deliberately did not try to move
> those snapshots into other snapshots.
> 
> I can move r/w snapshots  around without problems
> (into some regular directory), just the r/o snapshots refuse moving.

This is an imperfect example:

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.


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