Re: Make existing snapshots read-only?

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

 



On Tue, May 29, 2012 at 08:40:10AM +0800, Li Zefan wrote:
> > Is there any way to mark existing snapshots as read-only? Making new
> > ones read-only is easy enough, but what about existing ones?
> 
> We have code in the kernel side, so what we need to do is to update btrfs-progs,
> which is trivial.

Well, I don't like that it's even possible to turn a RO snapshot to a RW
one. What was the rationale behind this back then? Besides, I think that
it could break assumptions in the backref code.

If it's only a one-way operation from a regular subvol -> RO subvol,
this sounds reasonable to me. If the opposite direction is allowed, then
I'd not call it 'read-only' but "unwritable on-request".


david
--
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