From: Charles Duffy Date: Tue, 2 Jun 2009 16:30:26 +0000 (-0500) Subject: use add_drive_ro for --mount parameters from guestfish when called with --ro X-Git-Tag: 1.0.39~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=d1da506d35e3c14b0bbe5397d73994fe082bc831;hp=d1da506d35e3c14b0bbe5397d73994fe082bc831;p=libguestfs.git use add_drive_ro for --mount parameters from guestfish when called with --ro To prevent writes (such as ext3 journal replay) from occuring even when --ro is passed, guestfish should use add_drive_ro() for any drives specified on the command line with --add if --ro is also passed. As we need to look through the entire command line for --ro before adding any drives, we move the add process out of the argument-parsing loop and into its own function, patterned off mount_mps(). Signed-off-by: Charles Duffy ---