Re: [PATCH] vfs: return EINVAL instead of ENOENT when missing source

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

 



Murphy Zhou <jencce.kernel@xxxxxxxxx> wrote:

> mount(2) with a NULL source device would return ENOENT instead of EINVAL
> after this commit:
> 
> commit f3a09c92018a91ad0981146a4ac59414f814d801
> Author: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> Date:   Sun Dec 23 18:55:56 2018 -0500
> 
>     introduce fs_context methods
> 
> Change the return value to be compatible with the old behaviour.
> 
> This was caught by LTP mount02[1]. This testcase is calling mount(2) with a
> NULL device name and expecting EINVAL to PASS but now we are getting ENOENT.
> 
> [1] https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/mount/mount02.c
> 
> Signed-off-by: Murphy Zhou <jencce.kernel@xxxxxxxxx>

Reviewed-by: David Howells <dhowells@xxxxxxxxxx>



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux