Ryusuke Konishi d240e06713 nilfs2: disallow remount of snapshot from/to a regular mount
Snapshots and regular ro/rw mounts are essentially-different within
the meaning whether the checkpoint is static or not and is marked with
a snapshot flag or not.

The current implemenation, however, allows to remount a snapshot to a
regular rw-mount if the checkpoint number equals the latest one.

This transition is actually impossible since changing a checkpoint to
a snapshot makes another checkpoint, thus the condition is never
satisfied.

This fixes the weird state of affairs, and specifically separates
snapshots and regular rw/ro-mounts.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
2010-05-10 11:32:34 +09:00
..
2009-04-07 08:31:13 -07:00
2009-12-25 13:01:50 +09:00
2009-12-25 13:01:50 +09:00
2010-03-14 10:29:51 +09:00
2009-12-25 13:01:50 +09:00
2009-11-20 10:05:50 +09:00
2009-04-07 08:31:16 -07:00
2009-04-07 08:31:13 -07:00
2009-06-11 21:36:18 -04:00
2010-05-10 11:32:31 +09:00
2010-03-14 10:29:51 +09:00