This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Inspired by: | |
http://eli.thegreenplace.net/2009/08/29/co-routines-as-an-alternative-to-state-machines/ | |
""" | |
def parse_args(target): | |
"""A generator that parses a stream of arguments one character at a time. | |
As soon as a flag, or flag value pair ("-a" or "-a value") is processed | |
the pair is sent off as a tuple to the 'target' generator. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TL;DR; Force the use nfs4.0 (the issue arises with nfs > 4.1). | |
# Situation: | |
* NFS server with multiple IP. E.g. different subnets for different access levels and or bandwidth/MTU. | |
IPs | |
192.168.10.1 | |
192.168.20.1 | |
Exports: | |
/srv/nfs/lvl10 192.168.10.0/255.255.255.0 |