Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-4932 doc: update design doc for LFSCK
[fs/lustre-release.git]
/
lustre
/
tests
/
mlink.c
diff --git
a/lustre/tests/mlink.c
b/lustre/tests/mlink.c
old mode 100755
(executable)
new mode 100644
(file)
index
5ef92e9
..
3dd06f5
--- a/
lustre/tests/mlink.c
+++ b/
lustre/tests/mlink.c
@@
-1,6
+1,4
@@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@
-26,8
+24,10
@@
* GPL HEADER END
*/
/*
* GPL HEADER END
*/
/*
- * Copyright
2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright
(c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
* Use is subject to license terms.
+ *
+ * Copyright (c) 2013, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-44,18
+44,18
@@
int main(int argc, char ** argv)
{
int main(int argc, char ** argv)
{
-
int rc;
+ int rc;
- if (argc < 3) {
-
printf("U
sage: %s file link\n", argv[0]);
-
return 1;
-
}
+ if (argc < 3) {
+
fprintf(stderr, "u
sage: %s file link\n", argv[0]);
+ return 1;
+ }
-
rc = link(argv[1], argv[2]);
- if (rc) {
-
printf("link(%s, %s) error: %s\n", argv[1], argv[2]
,
- strerror(errno));
+ rc = link(argv[1], argv[2]);
+ if (rc) {
+
fprintf(stderr, "link(%s, %s) error: %s\n"
,
+
argv[1], argv[2],
strerror(errno));
return errno;
return errno;
-
}
+ }
return 0;
return 0;
-}
+}