def canonicalize_volume(volname):
    """
    remove well-known suffices .readonly and .backup
    from a volume-name, if presetn 
    """
    
    if volname.endswith(".readonly"):
        return volname[0:len(volname)-9]
    
    if volname.endswith(".backup"):
        return volname[0:len(volname)-6]