linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nilfs_cleanerd not started for mount with relative pathname
@ 2011-03-02 17:12 dexen deVries
       [not found] ` <201103021812.31515.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: dexen deVries @ 2011-03-02 17:12 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Hi,


when testing my other patches, the following came up:

with absolute pathname:
# mount /dev/sdb2 /mnt/x
# ps ax | grep [n]ilfs_cleanerd
30408 ?        Ss     0:00 /sbin/nilfs_cleanerd -n /dev/sdb2 /mnt/x


with relative mountpoint pathname:
# umount /mnt/x
# cd /mnt
# mount /dev/sdb2 x
# ps ax | grep [n]ilfs_cleanerd
((no such process))

with relative device pathname:
# umount /mnt/x
# cd /dev
# mount sdb2 /mnt/x
# ps ax | grep [n]ilfs_cleanerd
((no such process))

This is due to chdir(ROOTDIR) in daemonize(); currently daemonize is always 
called with nochdir == 0. Should I hardcode it to nochdir == 1 or canonicalize 
the `dev' and `dir' arguments with myrealpath()?

-- 
dexen deVries

[[[↓][→]]]

47. As Will Rogers would have said, "There is no such thing as a free 
variable."

(Alan Perlis, `Epigrams on Programming')
--
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

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

end of thread, other threads:[~2011-03-07  2:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 17:12 nilfs_cleanerd not started for mount with relative pathname dexen deVries
     [not found] ` <201103021812.31515.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-03 17:32   ` Ryusuke Konishi
     [not found]     ` <20110304.023204.179943022.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-03-04  3:06       ` Ryusuke Konishi
     [not found]         ` <20110304.120604.248913114.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-03-06 21:30           ` [PATCH] nilfs_cleanerd: support relative pathnames in arguments dexen deVries
     [not found]             ` <1299447018-19088-1-git-send-email-dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-07  2:32               ` Ryusuke Konishi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).