From: Andreas Dilger Date: Wed, 13 Feb 2019 07:54:42 +0000 (-0700) Subject: LU-9625 utils: remove old lfs "cp" and "ls" sub-commands X-Git-Tag: 2.12.3-RC1~204 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F34911%2F2;p=fs%2Flustre-release.git LU-9625 utils: remove old lfs "cp" and "ls" sub-commands Remove the obsolete "lfs cp" and "lfs ls" sub-commands for handling "remote" users in a different namespace. They have been non-working since commit v2_8_54_0-73-g9d06de3 and were never in use before that. Instead we have nodemap to handle UID/GID mapping. Test-Parameters: trivial Lustre-change: https://review.whamcloud.com/34240 Lustre-commit: a1ecd11712a6a4e8b7819c6826a17bf8677df752 Signed-off-by: Andreas Dilger Change-Id: I8db90d388f8fa621d61fc65ab677b1589b3ebbe5 Reviewed-by: Jian Yu Reviewed-by: Nikitas Angelinas Reviewed-by: Sebastien Buisson Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/34911 Tested-by: Jenkins Tested-by: Maloo --- diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 9d897af..b878748 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -98,8 +98,6 @@ static int lfs_quota(int argc, char **argv); static int lfs_project(int argc, char **argv); #endif static int lfs_flushctx(int argc, char **argv); -static int lfs_cp(int argc, char **argv); -static int lfs_ls(int argc, char **argv); static int lfs_poollist(int argc, char **argv); static int lfs_changelog(int argc, char **argv); static int lfs_changelog_clear(int argc, char **argv); @@ -478,12 +476,6 @@ command_t cmdlist[] = { #endif {"flushctx", lfs_flushctx, 0, "Flush security context for current user.\n" "usage: flushctx [-k] [mountpoint...]"}, - {"cp", lfs_cp, 0, - "Remote user copy files and directories.\n" - "usage: cp [OPTION]... [-T] SOURCE DEST\n\tcp [OPTION]... SOURCE... DIRECTORY\n\tcp [OPTION]... -t DIRECTORY SOURCE..."}, - {"ls", lfs_ls, 0, - "Remote user list directory contents.\n" - "usage: ls [OPTION]... [FILE]..."}, {"changelog", lfs_changelog, 0, "Show the metadata changes on an MDT." "\nusage: changelog [startrec [endrec]]"}, @@ -6660,20 +6652,6 @@ static int lfs_flushctx(int argc, char **argv) return rc; } -static int lfs_cp(int argc, char **argv) -{ - fprintf(stderr, "remote client copy file(s).\n" - "obsolete, does not support it anymore.\n"); - return 0; -} - -static int lfs_ls(int argc, char **argv) -{ - fprintf(stderr, "remote client lists directory contents.\n" - "obsolete, does not support it anymore.\n"); - return 0; -} - static int lfs_changelog(int argc, char **argv) { void *changelog_priv;