diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-06-13 11:05:26 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-06-13 11:05:26 +0300 |
commit | d11455328e80473be4b5d225305b49a0f53f459c (patch) | |
tree | 15696a30557719abc4d24d22ca547c0c072a2710 /lib | |
parent | ebb9315c8c4c3a42c4b175e8f4ec8f18e80e7071 (diff) | |
download | beam-d11455328e80473be4b5d225305b49a0f53f459c.tar.gz beam-d11455328e80473be4b5d225305b49a0f53f459c.tar.bz2 |
New configuration variable backup_s3_mount_options
* beam.conf: Document backup_s3_mount_options.
* lib/beam/s3.sh: Add backup_s3_mount_options to the list
of options passed to mount.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/beam/s3.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/beam/s3.sh b/lib/beam/s3.sh index 4ddcecc..bb7296f 100644 --- a/lib/beam/s3.sh +++ b/lib/beam/s3.sh @@ -65,10 +65,12 @@ s3_mount() { if test -z "$1"; then case $(basename $0) in beam-restore|restore) mountopt=",ro";; - beam-backup|backup) mountopt=",rw,data=writeback";; + beam-backup|backup) mountopt=",rw";; beam-s3) ;; *) error "called as $0: assuming default mount options" esac + test -n "$backup_s3_mount_options" && + mountopt="$mountopt,$backup_s3_mount_options" # NOTE: For ext4 add the journal_async_commit option. $dry_run mount -oloop$mountopt $backup_mp_s3backer/file $backup_mp_s3 || abend 1 "unable to mount $backup_mp_s3backer/file" |