Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Wed, 22 Oct 2008 21:17:28 +0000 (21:17 +0000)
committeradilger <adilger>
Wed, 22 Oct 2008 21:17:28 +0000 (21:17 +0000)
commit9fcca5c394edba9fb300ec81782def9a8963d11e
tree257161ba61dc759b5bdd2c95e90109ff39280b3c
parent65f297458ed489f33f4091a835502bafb27019c9
Branch HEAD
copy_{to,from}_user() do not return an error code, but rather the number
of uncopied bytes (0 if all bytes were copied).  Storing this return value
into "rc" is misleading because it then seems this should be returned to
the caller of the function.

Code was audited to remote storing of the return value into "rc" and
several incorrect uses were found.
lustre/liblustre/super.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/lmv/lmv_obd.c
lustre/lov/lov_obd.c
lustre/lov/lov_pack.c
lustre/mgs/mgs_handler.c