Date: Sat, 13 Jun 2015 10:04:02 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: "Ranjan1018 ." <214748mv@gmail.com> Cc: Henry Hu <henry.hu.sh@gmail.com>, Garrett Cooper <yaneurabeya@gmail.com>, FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: Slow shutdown Message-ID: <CAN6yY1u4yjxYcbQkU33PRN5k4NEUyczMsQXord5QHjw0U2T2wg@mail.gmail.com> In-Reply-To: <CACyC=qbBtxgL8860T8%2B0_XQSp8JExLton=SBFapRB9DAQ0qeVQ@mail.gmail.com> References: <CACyC=qY62b5=6=T9dwuWASXeOREMkhafXcUpqt3ctYJHTnJF8A@mail.gmail.com> <D6DC0EEA-3929-4258-986C-3FCBDBC5D9EB@gmail.com> <CACyC=qYHRJwJv4y-8gCWVQLtE76KnvYNtks1pq5G8esb4MOXHw@mail.gmail.com> <CAN6yY1u=NitiQuFR_W9gvqhyciK0=ZK0vDJGVLYCUUMkRBd=4g@mail.gmail.com> <CAEJt7hbL88REheDhAU5aiu5M9scq1Z5Gbm1jPQKxmzhyCWZrvA@mail.gmail.com> <CACyC=qbBtxgL8860T8%2B0_XQSp8JExLton=SBFapRB9DAQ0qeVQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 12, 2015 at 1:30 AM, Ranjan1018 . <214748mv@gmail.com> wrote: > > > 2015-06-12 1:13 GMT+02:00 Henry Hu <henry.hu.sh@gmail.com>: > >> On Thu, Jun 11, 2015 at 1:55 PM Kevin Oberman <rkoberman@gmail.com> >> wrote: >> >>> The same issue exists in fusefs, but has an uglier result. The fuse >>> daemon >>> shuts down before any fusefs based file systems are unmounted, but, for >>> several R/W file systems including NTFS and exFAT, the result is a >>> corrupt >>> file system. I did the same thing to work around this problem... an init >>> script, but I wonder if this should not be handled in some cleaner and >>> more >>> global manner. (No, I have no idea right now of how to implement this.) >>> >> >> I think that I've hit this problem several times, because I've lost files >> on my NTFS portable harddisk several times. Now I force an unmount in the >> shutdown script. >> I remember that when fuse module was still in fusefs-kmod, the rc script >> unmounts the file systems, and there's even a _safe flag to ensure safety. >> >> > Hi, > I have the same issue in my laptop a dual boot FreeBSD/Windows 8. In > FreeBSD, the Win8 partition, is mounted via fusefs and is unmounted in a > shutdown script. > But if I do not unmount this partition in a script, it is not unmounted by > the OS or fusefs at shutdown. Probably this is a different or new bug. > > For the original bug I have opened a PR: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200784 > Please comment here if you like. > > Regards, > Maurizio > > I also opened a bug report for the fusefs case. It is https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200513. It includes a shutdown script that will unmount the file systems cleanly, though it will unmount all fusefs file systems, whether they need it or not. Many fusefs file systems are read-only or fully synchronous, so are always "clean". But, as far as I can tell, unmounting does not harm for any fusefs file system. (Yes, "fusefs file system" is probably redundant.) The shutdown script is only for systems running the native fusefs code and not the older fusefs-kmod port. -- Kevin Oberman, Network Engineer, Retired
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1u4yjxYcbQkU33PRN5k4NEUyczMsQXord5QHjw0U2T2wg>