From: Ryusuke Konishi Date: Sun, 9 May 2010 12:51:53 +0000 (+0900) Subject: nilfs2: disallow remount of snapshot from/to a regular mount X-Git-Tag: v2.6.35-rc1~462^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d240e06713007bba309b074a386b7072b73c31a6;p=pandora-kernel.git 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 --- Reading git-diff-tree failed