From 1d59ae041bac6f7d8729c8013c254bc95e51ec2a Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 18 Sep 2006 23:03:01 +0000 Subject: [PATCH] - use 'last_received' name for last_rcvd file - use journalled data mode on mds --- lustre/include/lustre_disk.h | 2 +- lustre/utils/mkfs_lustre.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/include/lustre_disk.h b/lustre/include/lustre_disk.h index 9c76666..73fb1d8 100644 --- a/lustre/include/lustre_disk.h +++ b/lustre/include/lustre_disk.h @@ -34,7 +34,7 @@ #define MOUNT_CONFIGS_DIR "CONFIGS" /* Persistent mount data are stored on the disk in this file. */ #define MOUNT_DATA_FILE MOUNT_CONFIGS_DIR"/mountdata" -#define LAST_RCVD "last_rcvd" +#define LAST_RCVD "last_received" #define LOV_OBJID "lov_objid" #define HEALTH_CHECK "health_check" diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index 7a15034..034aec0 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -1270,7 +1270,7 @@ static int mkfs_mdt(struct mkfs_opts *mop) goto out_umount; } - snprintf(filepnm, sizeof(filepnm) - 1, "%s/%s", mntpt, "last_rcvd"); + snprintf(filepnm, sizeof(filepnm) - 1, "%s/%s", mntpt, "last_received"); ret = touch_file(filepnm); if (ret) { goto out_umount; @@ -1481,6 +1481,8 @@ int main(int argc, char *argv[]) if (IS_MDT(ldd) || IS_MGS(ldd)) strcat(always_mountopts, ",iopen_nopriv,user_xattr"); + if (IS_MDT(ldd)) + strcat(always_mountopts, ",data=journal"); if ((get_os_version() == 24) && IS_OST(ldd)) strcat(always_mountopts, ",asyncdel"); /* NB: Files created while extents are enabled cannot be read -- 1.8.3.1