From 17fb330a9df6a40005367c5e447a6dd429c53b3d Mon Sep 17 00:00:00 2001 From: liuy <liuy> Date: Thu, 26 Jul 2007 10:30:08 +0000 Subject: [PATCH] Branch b1_6 b=12769 i=green,wangdi Add sync option to mount_lustre.c --- lustre/ChangeLog | 5 +++++ lustre/utils/mount_lustre.c | 1 + 2 files changed, 6 insertions(+) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 94e0da6588..ee4ec097d4 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -45,6 +45,11 @@ Description: omit set fsid for export NFS Details : fix set/restore device id for avoid EMFILE error and mark lustre fs as FS_REQUIRES_DEV for avoid problems with generate fsid. +Severity : major +Bugzilla : 12769 +Description: Add sync option to mount_lustre.c +Details : Client loses data written to lustre after a network interruption. + -------------------------------------------------------------------------------- 2007-07-30 Cluster File Systems, Inc. <info@clusterfs.com> diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 3db5dc7dd6..2e2a60e3b4 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -182,6 +182,7 @@ static const struct opt_map opt_map[] = { { "nosuid", 0, MS_NOSUID }, /* don't honor suid executables */ { "dev", 1, MS_NODEV }, /* interpret device files */ { "nodev", 0, MS_NODEV }, /* don't interpret devices */ + { "sync", 0, MS_SYNCHRONOUS}, /* synchronous I/O */ { "async", 1, MS_SYNCHRONOUS}, /* asynchronous I/O */ { "auto", 0, 0 }, /* Can be mounted using -a */ { "noauto", 0, 0 }, /* Can only be mounted explicitly */ -- GitLab