Re: nilfs_cleanerd Function not implemented

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sven,


On Friday 16 of March 2012 05:05:33 you wrote:
> Hi list,
> 
> 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.
> (...)

I'd suspect futex() or open(..., O_RDWR|O_NOFOLLOW). Do you have 
`CONFIG_FUTEX' enabled in your embedded kernel?

Relevant snippet from strace of my nilfs_cleanerd (version nilfs-
utils-2.0.23):

864   open("/proc/mounts", O_RDONLY)    = 5
864   fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
864   mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7f551032d000
864   read(5, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 480
864   readlink("/dev", 0x7fffff54d630, 4096) = -1 EINVAL (Invalid argument)
864   readlink("/dev/root", "sda3", 4096) = 4
864   readlink("/dev/sda3", 0x7fffff54d630, 4096) = -1 EINVAL (Invalid argument)
864   readlink("/dev", 0x7fffff54d630, 4096) = -1 EINVAL (Invalid argument)
864   readlink("/dev/sdb3", 0x7fffff54d630, 4096) = -1 EINVAL (Invalid argument)
864   close(5)                          = 0
864   munmap(0x7f551032d000, 4096)      = 0
864   open("/home", O_RDONLY)           = 5
864   stat("/dev/sdb3", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 19), ...}) = 
0
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


Btw., you may not be seeing the failed (with `Function not implemented') 
syscall in strace, if the libc itself signals the `Function not implemented' 
error instead of issuing the syscall. Consider using ``ltrace'' instead, to 
intercept all lib calls.


Cheers,
-- 
dexen deVries

[[[↓][→]]]

Already many of the mutants disguised as human beings are walking the streets 
of Earth's cities.
 -- Music Instructor, ``Electro City''
--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux