summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-05-09 14:51:53 +0200
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-05-10 04:32:34 +0200
commitd240e06713007bba309b074a386b7072b73c31a6 (patch)
tree3c9133ae5b349aeec8c0a93338b9dd13b9c9dac1 /drivers/infiniband/ulp/ipoib/ipoib_multicast.c
parentnilfs2: use huge_encode_dev/huge_decode_dev (diff)
downloadlinux-d240e06713007bba309b074a386b7072b73c31a6.tar.xz
linux-d240e06713007bba309b074a386b7072b73c31a6.zip
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>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_multicast.c')
0 files changed, 0 insertions, 0 deletions