linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem report: cannot run nilfs_cleanerd on full filesystem
@ 2011-03-19 16:37 dexen deVries
       [not found] ` <201103191738.00187.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: dexen deVries @ 2011-03-19 16:37 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Hi,

It seems on a completely filled filesystem nilfs_cleanerd cannot be started
(nor other utilities that rely on the same libnilfs nilfs_open() function).

This is seriously troubling because removing some files does not free up the space
(per NILFS2 design), so it looks like there is no way to use this filesystem ever again,
at least without manual intervetion into on-disk metadata.


strace shows the following:

blitz!root!/tmp# strace -f /sbin/nilfs_cleanerd /dev/sda1 /mnt/x -p 2
(...lotsa normal output...)
open("/mnt/x/.nilfs", O_RDWR|O_CREAT, 0666) = -1 ENOSPC (No space left on device)
close(4)                                = 0
sendto(3, "<27>Mar 19 17:27:42 nilfs_cleane"..., 97, MSG_NOSIGNAL, NULL, 0) = 97
sendto(3, "<27>Mar 19 17:27:42 nilfs_cleane"..., 102, MSG_NOSIGNAL, NULL, 0) = 102
sendto(3, "<30>Mar 19 17:27:42 nilfs_cleane"..., 50, MSG_NOSIGNAL, NULL, 0) = 50
close(3)                                = 0
exit_group(1)                           = ?
Process 8111 detached


The nilfs_cleanerd exits quietly, without any indication of trouble.
I guess solution ought to be two-prong: open NILFS before daemonize()
and make it possible for nilfs_cleanerd to open filesystem at all when full.


To make it clear: if the nilfs_cleanerd is *running*, it will work *OK*. But
any attempt to start nilfs_cleanerd on full filesystem will fail -- for example
on system boot.


-- 
dexen deVries

``One can't proceed from the informal to the formal by formal means.''
--
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] 12+ messages in thread

end of thread, other threads:[~2011-03-23  7:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-19 16:37 Problem report: cannot run nilfs_cleanerd on full filesystem dexen deVries
     [not found] ` <201103191738.00187.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-19 22:01   ` Reinoud Zandijk
     [not found]     ` <20110319220157.GA681-bVHBekiX4bNgoMqBc1r0ESegHCQxtGRMHZ5vskTnxNA@public.gmane.org>
2011-03-19 22:12       ` dexen deVries
     [not found]         ` <201103192312.38046.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-20 12:50           ` Reinoud Zandijk
     [not found]             ` <20110320125040.GA735-bVHBekiX4bNgoMqBc1r0ESegHCQxtGRMHZ5vskTnxNA@public.gmane.org>
2011-03-21 11:07               ` Ryusuke Konishi
     [not found]                 ` <20110321.200706.260176646.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-03-21 12:00                   ` dexen deVries
     [not found]                     ` <201103211300.50177.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-21 15:07                       ` Ryusuke Konishi
     [not found]                         ` <20110322.000702.112911778.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-03-21 15:30                           ` Ryusuke Konishi
2011-03-21 12:05                   ` dexen deVries
     [not found]                     ` <201103211305.48353.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-21 15:17                       ` Ryusuke Konishi
2011-03-21 13:01                   ` Reinoud Zandijk
     [not found]                     ` <20110321130151.GA29111-bVHBekiX4bNgoMqBc1r0ESegHCQxtGRMHZ5vskTnxNA@public.gmane.org>
2011-03-23  7:51                       ` Reinoud Zandijk

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).