hammer - Disallow modifying ioctls when filesystem is read-only
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Dec 2016 22:36:32 +0000 (14:36 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Dec 2016 22:36:32 +0000 (14:36 -0800)
commit84c5a98487d43c8b9b98c5490f23084b6bb89efd
tree249fc8f8eeb9f643eba81e9aa95d4896be8ef51c
parent2947528a83ae7a03df86a5688ef1725492b0f024
hammer - Disallow modifying ioctls when filesystem is read-only

* Disallow modifying ioctls if the filesystem has been mounted read-only
  or gone into read-only mode due to an I/O error.

* This is only a partial fix.  There are still error-pathing problems
  in numerous procedures, particularly the node locking code, that might
  result in a token life-lock.

Reported-by: Peter Avalos
sys/vfs/hammer/hammer_ioctl.c
sys/vfs/hammer/hammer_prune.c
sys/vfs/hammer/hammer_rebalance.c
sys/vfs/hammer/hammer_reblock.c