X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flfs.c;h=c96afdfb09b1f35f7a3971d7fcf430713ab60d06;hp=079d2a04b533cac6574775fc4936445e78a48697;hb=refs%2Fchanges%2F92%2F36892%2F13;hpb=7a810496c2ce970294af7ad5939d43490c1817d7 diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 079d2a0..c96afdf 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -10712,6 +10712,11 @@ static int lfs_pcc_attach(int argc, char **argv) } } + if (archive_id == 0) { + fprintf(stderr, "%s: must specify attach ID\n", argv[0]); + return CMD_HELP; + } + if (argc <= optind) { fprintf(stderr, "%s: must specify one or more file names\n", argv[0]);