nilfs_cleanerd not started for mount with relative pathname
- Subject: nilfs_cleanerd not started for mount with relative pathname
- From: dexen deVries <dexen.devries@xxxxxxxxx>
- Date: Wed, 2 Mar 2011 18:12:31 +0100
- User-agent: KMail/1.13.6 (Linux/2.6.38-rc6-19b+; KDE/4.5.5; x86_64; ; )
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Filesystem; Devel]
[Linux CIFS]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]