Re: [RFC] Parallelize IO for e2fsck

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zan Lynx
Date: Friday, January 25, 2008 - 5:55 pm

On Fri, 2008-01-25 at 04:09 -0700, Andreas Dilger wrote:

The commentary on the mem_notify threads claimed that the signal is
easily provided by setting up the file handle for SIGIO.

Yeah.  Here it is...copied from email written by KOSAKI Motohiro:

implement FASYNC capability to /dev/mem_notify.

<usage example>
        fd =3D open("/dev/mem_notify", O_RDONLY);

        fcntl(fd, F_SETOWN, getpid());

        flags =3D fcntl(fd, F_GETFL);
        fcntl(fd, F_SETFL, flags|FASYNC);  /* when low memory, receive SIGI=
O */
</usage example>
--=20
Zan Lynx <zlynx@acm.org>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Parallelize IO for e2fsck, Bodo Eggert, (Thu Jan 24, 10:32 am)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Thu Jan 24, 3:07 pm)
Re: [RFC] Parallelize IO for e2fsck, Adrian Bunk, (Thu Jan 24, 4:08 pm)
Re: [RFC] Parallelize IO for e2fsck, Theodore Tso, (Thu Jan 24, 4:40 pm)
Re: [RFC] Parallelize IO for e2fsck, Zan Lynx, (Thu Jan 24, 5:25 pm)
Re: [RFC] Parallelize IO for e2fsck, Andreas Dilger, (Fri Jan 25, 4:09 am)
Re: [RFC] Parallelize IO for e2fsck, Zan Lynx, (Fri Jan 25, 5:55 pm)
Re: [RFC] Parallelize IO for e2fsck, KOSAKI Motohiro, (Sat Jan 26, 4:56 am)
Re: [RFC] Parallelize IO for e2fsck, KOSAKI Motohiro, (Sat Jan 26, 5:32 am)