bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

readonly (-r) option for bcachefs subvolume snapshot -r ... does not make snapshot readonly

Open b-r-o-w-n opened this issue 2 years ago • 3 comments

The "-r" option does not make the snapshot read only.

I create da snapshot with "-r"

I cd'd into the snapshot.

touch a

ls -al -rw-rw-r-- 1 root root 727 Nov 6 09:13 README -rw-r--r-- 1 root root 0 Mar 1 17:02 a <---- was created! drwxrwxr-x 25 root root 0 Nov 6 09:13 arch

b-r-o-w-n avatar Mar 02 '22 02:03 b-r-o-w-n

bcachefs seems not having snapshot read only option

bhzhu203 avatar Mar 03 '22 08:03 bhzhu203

But this seems to imply that it should.

./bcachefs subvolume snapshot -h bcachefs subvolume snapshot - create a snapshot Usage: bcachefs subvolume snapshot [OPTION]...

Create a snapshot of at . If specified, must be a subvolume; if not specified the snapshot will be of the subvolme containing . Options: -r Make snapshot read only -h, --help Display this help and exit

So, either its not done yet or no longer needed... or my git repo is out of date;)

ps. The man page is out of date also.

b-r-o-w-n avatar Mar 03 '22 15:03 b-r-o-w-n

Yeah it's just not implemented yet.

YellowOnion avatar Mar 23 '22 23:03 YellowOnion