From: Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
To: svengbergh-nilfs-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
Cc: dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: nilfs_cleanerd Function not implemented
Date: Sun, 18 Mar 2012 02:17:40 +0900 (JST) [thread overview]
Message-ID: <20120318.021740.212402053.ryusuke@osrg.net> (raw)
In-Reply-To: <20120317.225320.67906283.ryusuke-sG5X7nlA6pw@public.gmane.org>
On Sat, 17 Mar 2012 22:53:20 +0900 (JST), Ryusuke Konishi wrote:
> On Sat, 17 Mar 2012 20:43:43 +0900 (JST), Ryusuke Konishi wrote:
> > On Fri, 16 Mar 2012 07:21:39 -0700 (PDT), Sven-Göran_Bergh wrote:
> > > Hi dexen,
> > >
> > > thank you for a prompt reply.
> > >
> > >
> > >
> > > >> I am in the process of migrating an embedded project from
> > > >> ext2 to nilfs2 and have a problem with nilfs_cleanerd. It
> > > >> does not start on mount and I cannot start it manually.
> > > >> (...)
> > > >
> > > > Relevant snippet from strace of my nilfs_cleanerd (version nilfs-
> > > > utils-2.0.23):
> > > ...
> > > > 864 statfs("/dev/shm", {f_type=0x1021994, f_bsize=4096,
> > > > f_blocks=86016,
> > > > f_bfree=86010, f_bavail=86010, f_files=754077, f_ffree=754075, f_fsid={0, 0},
> > > > f_namelen=255, f_frsize=4096}
> > > > ) = 0
> > > > 864 futex(0x7f551010d31c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> > > > 864 open("/dev/shm/sem.nilfs-cleaner-2067", O_RDWR|O_NOFOLLOW) = -1
> > > > ENOENT
> > > > (No such file or directory)
> > > > 864 lstat("/dev/shm/sem.qLTneb", 0x7fffff54fb70) = -1 ENOENT (No
> > > > such file or
> > > > directory)
> > > > 864 open("/dev/shm/sem.qLTneb", O_RDWR|O_CREAT|O_EXCL, 0700) = 6
> > >
> > > Hmmm, quite different.
> >
> > Could you confirm whether /dev/shm is mounted on /run/shm (or
> > /var/run/shm) ?
> >
> > Some systems don't mount /dev/shm, and posix semaphores do not work in
> > such systems.
>
> Oops, /dev/shm is just a directory (not a device), and /run/shm was
> irrelevant. Sorry.
>
> The cause of this problem seems that posix semaphores are not
> available in your system. I'll dig into it.
>
> Ryusuke Konishi
I read the source code of sem_open() in glibc and found that
sem_open() fails if there is no tmpfs (former shm fs) mount in the
system.
According to your strace log, your /dev/shm is mounted with "ramfs"
whose magic number is 0x858458f6. This looks the cause of the error.
> statfs("/dev/shm", {f_type=0x858458f6, f_bsize=4096, f_blocks=0,
> f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0},
> f_namelen=255, f_frsize=4096}) = 0
Try following kernel configs to enable tmpfs and mount it to
/dev/shm instead of using ramfs.
- CONFIG_SHMEM
Generic setup ->
Configure standard kernel features (expert users) ->
Use full shmem filesystem
- CONFIG_TMPFS
File systems ->
Pseudo filesystems ->
Tmpfs virtual memory file system support (former shm fs)
Regards,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-03-17 17:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 12:05 nilfs_cleanerd Function not implemented svengbergh-nilfs-/E1597aS9LQAvxtiuMwx3w
[not found] ` <1331899533.77663.YahooMailNeo-/W4/QBBOCLIR8UyDmTZ/NZEhsgyP+Z75VpNB7YpNyf8@public.gmane.org>
2012-03-16 12:37 ` dexen deVries
2012-03-16 14:21 ` Sven-Göran Bergh
[not found] ` <1331907699.90830.YahooMailNeo-/W4/QBBOCLJal3a5i+KC+JEhsgyP+Z75VpNB7YpNyf8@public.gmane.org>
2012-03-17 11:43 ` Ryusuke Konishi
[not found] ` <20120317.204343.93460664.ryusuke-sG5X7nlA6pw@public.gmane.org>
2012-03-17 13:53 ` Ryusuke Konishi
[not found] ` <20120317.225320.67906283.ryusuke-sG5X7nlA6pw@public.gmane.org>
2012-03-17 17:17 ` Ryusuke Konishi [this message]
[not found] ` <20120318.021740.212402053.ryusuke-sG5X7nlA6pw@public.gmane.org>
2012-03-19 8:19 ` Sven-Göran Bergh
[not found] ` <1332145146.39316.YahooMailNeo-/W4/QBBOCLLK0anN2EpufZEhsgyP+Z75VpNB7YpNyf8@public.gmane.org>
2012-03-19 17:53 ` Sven-Göran Bergh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120318.021740.212402053.ryusuke@osrg.net \
--to=konishi.ryusuke-zyj7fxus5i5l9jvzuh4aog@public.gmane.org \
--cc=dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=svengbergh-nilfs-/E1597aS9LQAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox