git: hammer - Disallow modifying ioctls when filesystem is read-only

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Dec 6 15:17:23 PST 2016


commit 84c5a98487d43c8b9b98c5490f23084b6bb89efd
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Dec 6 14:36:32 2016 -0800

    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

Summary of changes:
 sys/vfs/hammer/hammer_ioctl.c     | 34 +++++++++++++++++++++++++++++++++-
 sys/vfs/hammer/hammer_prune.c     |  8 ++++++++
 sys/vfs/hammer/hammer_rebalance.c |  8 ++++++++
 sys/vfs/hammer/hammer_reblock.c   |  8 ++++++++
 4 files changed, 57 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/84c5a98487d43c8b9b98c5490f23084b6bb89efd


-- 
DragonFly BSD source repository


More information about the Commits mailing list