bcachefs: make RO snapshots actually RO
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 30 Dec 2023 02:16:32 +0000 (21:16 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:07 +0000 (11:47 -0500)
commit0d72ab35a925d66b044cb62b709e53141c3f0143
treea0ef3340110dac004ec3ba1d1a2d7dfb1b9e7ce0
parent84f1638795da1ff2084597de4251e9054f1ad728
bcachefs: make RO snapshots actually RO

Add checks to all the VFS paths for "are we in a RO snapshot?".

Note - we don't check this when setting inode options via our xattr
interface, since those generally only affect data placement, not
contents of data.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Reported-by: "Carl E. Thompson" <list-bcachefs@carlthompson.net>
fs/bcachefs/acl.c
fs/bcachefs/fs-ioctl.c
fs/bcachefs/fs.c
fs/bcachefs/subvolume.c
fs/bcachefs/subvolume.h
fs/bcachefs/xattr.c