From: liuy Date: Thu, 26 Jul 2007 10:30:08 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~1411 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=17fb330a9df6a40005367c5e447a6dd429c53b3d;p=fs%2Flustre-release.git Branch b1_6 b=12769 i=green,wangdi Add sync option to mount_lustre.c --- diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 94e0da6..ee4ec09 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. diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 3db5dc7..2e2a60e 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 */