public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3] Change the fs_passno of nfs to 0
@ 2015-05-20 10:07 Chao Fan
       [not found] ` <1432116434-18050-1-git-send-email-cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Chao Fan @ 2015-05-20 10:07 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Chao Fan

There is a bug that kdump-initrd contains entry requesting nfs dump
filesystem to get filesystemchecked. And there is an erro message said
that nfs need be checked. But there's no fsck for nfs utility, e.g
fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed,
no fsck is executed at all for nfs mount.But in dracut, set it to be 2
always, so the erro message appear and it should be set to 0.

In the fstab,the sixth variable fs_passno stands for that the device need
checked or not,and dracut set it to "2".To fix this issue, it should
be "0" when the device is nfs.The third variable stands for the type of
the filesystem and we can use it to judge whether the device is nfs.
So when the third variable of fstab contains "nfs", the sixth variable
fs_passno should be set to "0".

Signed-off-by: Chao Fan <cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 dracut.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dracut.sh b/dracut.sh
index 6215b36..2d1860f 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -1518,6 +1518,7 @@ if [[ $kernel_only != yes ]]; then
         [ -z "${line[3]}" ] && line[3]="defaults"
         [ -z "${line[4]}" ] && line[4]="0"
         [ -z "${line[5]}" ] && line[5]="2"
+        strstr "${line[2]}" "nfs" && line[5]="0"
         echo "${line[@]}" >> "${initdir}/etc/fstab"
     done
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V3] Change the fs_passno of nfs to 0
       [not found] ` <1432116434-18050-1-git-send-email-cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-05-20 10:07   ` Dracut GitHub Import Bot
  2015-06-02 10:25   ` Harald Hoyer
  1 sibling, 0 replies; 3+ messages in thread
From: Dracut GitHub Import Bot @ 2015-05-20 10:07 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Patchset imported to github.
Pull request:
<https://github.com/haraldh/dracut/compare/master...dracut-mailing-devs:1432116434-18050-1-git-send-email-cfan%40redhat.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH V3] Change the fs_passno of nfs to 0
       [not found] ` <1432116434-18050-1-git-send-email-cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2015-05-20 10:07   ` Dracut GitHub Import Bot
@ 2015-06-02 10:25   ` Harald Hoyer
  1 sibling, 0 replies; 3+ messages in thread
From: Harald Hoyer @ 2015-06-02 10:25 UTC (permalink / raw)
  To: Chao Fan, initramfs-u79uwXL29TY76Z2rM5mHXA

pushed, thanks

On 20.05.2015 12:07, Chao Fan wrote:
> There is a bug that kdump-initrd contains entry requesting nfs dump
> filesystem to get filesystemchecked. And there is an erro message said
> that nfs need be checked. But there's no fsck for nfs utility, e.g
> fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed,
> no fsck is executed at all for nfs mount.But in dracut, set it to be 2
> always, so the erro message appear and it should be set to 0.
> 
> In the fstab,the sixth variable fs_passno stands for that the device need
> checked or not,and dracut set it to "2".To fix this issue, it should
> be "0" when the device is nfs.The third variable stands for the type of
> the filesystem and we can use it to judge whether the device is nfs.
> So when the third variable of fstab contains "nfs", the sixth variable
> fs_passno should be set to "0".
> 
> Signed-off-by: Chao Fan <cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  dracut.sh | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dracut.sh b/dracut.sh
> index 6215b36..2d1860f 100755
> --- a/dracut.sh
> +++ b/dracut.sh
> @@ -1518,6 +1518,7 @@ if [[ $kernel_only != yes ]]; then
>          [ -z "${line[3]}" ] && line[3]="defaults"
>          [ -z "${line[4]}" ] && line[4]="0"
>          [ -z "${line[5]}" ] && line[5]="2"
> +        strstr "${line[2]}" "nfs" && line[5]="0"
>          echo "${line[@]}" >> "${initdir}/etc/fstab"
>      done
>  
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-02 10:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 10:07 [PATCH V3] Change the fs_passno of nfs to 0 Chao Fan
     [not found] ` <1432116434-18050-1-git-send-email-cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-05-20 10:07   ` Dracut GitHub Import Bot
2015-06-02 10:25   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox