From a1ecd11712a6a4e8b7819c6826a17bf8677df752 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Wed, 13 Feb 2019 00:54:42 -0700 Subject: [PATCH] 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 Signed-off-by: Andreas Dilger Change-Id: I8db90d388f8fa621d61fc65ab677b1589b3ebbe5 Reviewed-on: https://review.whamcloud.com/34240 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Nikitas Angelinas Reviewed-by: Sebastien Buisson Reviewed-by: Oleg Drokin --- lustre/utils/lfs.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index cc625b6..e4a26f2 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); @@ -485,12 +483,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]]"}, @@ -6696,20 +6688,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; -- 1.8.3.1