On Sun, Jun 21, 2009 at 05:02:34PM +0300, Sami Liedes wrote:
> You say I should start the cleanerd by running
> 
>  # nilfs_cleanerd /dev/sdb1 /
> 
> However nothing in the output of `nilfs_cleanerd -h' indicates
> anything of the second parameter (mount point). Looking at the source,
> that's how mount.nilfs2 runs it too, and that's exactly the case where
> it fails.

OK, I debugged a bit and figured out what the real problem is. It's
the fact that nilfs_find_fs() is too strict about the mount points
being the same. Namely, it considers /media/lacie and /media/lacie/ to
be different mount points (it merely does a strcmp()).

/proc/mounts always uses the former syntax, so if the mount command is
something like `mount /dev/mapper/lacie /media/lacie/ -t nilfs2', the
cleanerd is not started because mount passes "/media/lacie/" as the
mount point, and nilfs_find_fs() expects it to not have the last
slash.

        Sami

Attachment: signature.asc
Description: Digital signature

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

Reply via email to