Re: [PATCH] nfsd: return 0 on reads of fault injection files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 10, 2012 at 03:31:10PM -0400, Weston Andros Adamson wrote:
> debugfs read operations were returning the contents of an uninitialized u64.

Thanks, applied.

> 
> Signed-off-by: Weston Andros Adamson <dros@xxxxxxxxxx>
> ---
> I found this while working on (forthcoming) fault injection tests for 
> CB_PATH_DOWN.

Did you ever confirm whether the latest nfsd is setting that flag when
it should be?

--b.

> 
>  fs/nfsd/fault_inject.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c
> index 46b7696..ab81144 100644
> --- a/fs/nfsd/fault_inject.c
> +++ b/fs/nfsd/fault_inject.c
> @@ -62,6 +62,7 @@ static int nfsd_inject_set(void *op_ptr, u64 val)
>  
>  static int nfsd_inject_get(void *data, u64 *val)
>  {
> +	*val = 0;
>  	return 0;
>  }
>  
> -- 
> 1.7.4.4
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux