Commit e11b0b16 authored by Andreas Dilger's avatar Andreas Dilger Committed by Greg Kroah-Hartman

staging/lustre/changelog: fix CL_LAYOUT comment, string

Fix the CL_LAYOUT comment, since it is possible that layout swap
could be used in cases where the file content is changed.  I don't
think there are any real world use cases for this, but that depends
on what tools are being used on the filesystem.

Also change the "LAYOUT" string for this ChangeLog record type to
be "LYOUT" to match the convention of other strings to only be
5 characters long.

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3279
Lustre-change: http://review.whamcloud.com/6338Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: default avatarJinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarPeng Tao <tao.peng@emc.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d865439
...@@ -636,7 +636,7 @@ enum changelog_rec_type { ...@@ -636,7 +636,7 @@ enum changelog_rec_type {
CL_EXT = 9, /* namespace extended record (2nd half of rename) */ CL_EXT = 9, /* namespace extended record (2nd half of rename) */
CL_OPEN = 10, /* not currently used */ CL_OPEN = 10, /* not currently used */
CL_CLOSE = 11, /* may be written to log only with mtime change */ CL_CLOSE = 11, /* may be written to log only with mtime change */
CL_LAYOUT = 12, /* file layout/striping modified, no data changed */ CL_LAYOUT = 12, /* file layout/striping modified */
CL_TRUNC = 13, CL_TRUNC = 13,
CL_SETATTR = 14, CL_SETATTR = 14,
CL_XATTR = 15, CL_XATTR = 15,
...@@ -650,7 +650,7 @@ enum changelog_rec_type { ...@@ -650,7 +650,7 @@ enum changelog_rec_type {
static inline const char *changelog_type2str(int type) { static inline const char *changelog_type2str(int type) {
static const char *changelog_str[] = { static const char *changelog_str[] = {
"MARK", "CREAT", "MKDIR", "HLINK", "SLINK", "MKNOD", "UNLNK", "MARK", "CREAT", "MKDIR", "HLINK", "SLINK", "MKNOD", "UNLNK",
"RMDIR", "RENME", "RNMTO", "OPEN", "CLOSE", "LAYOUT", "TRUNC", "RMDIR", "RENME", "RNMTO", "OPEN", "CLOSE", "LYOUT", "TRUNC",
"SATTR", "XATTR", "HSM", "MTIME", "CTIME", "ATIME", "SATTR", "XATTR", "HSM", "MTIME", "CTIME", "ATIME",
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment