[systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
hello.. we are currently using reiserfs on our root-partition.. since reiserfs always sets d_type to DT_UNKNOWN in dirent entries some tools like systemd-tmpfiles do not work as expected. in src/util.c:3905 DT_UNKNOWN is already included when checking file for type DT_REG or DT_LNK. since

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Andrey Borzenkov
On Thu, Mar 3, 2011 at 3:05 PM, Marius Tolzmann wrote: > > hello.. > > we are currently using reiserfs on our root-partition.. > > since reiserfs always sets d_type to DT_UNKNOWN in dirent entries some tools > like systemd-tmpfiles do not work as expected. > Hmm .. this could be the reason for my

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
hi.. On 03/03/11 13:52, Andrey Borzenkov wrote: since reiserfs always sets d_type to DT_UNKNOWN in dirent entries some tools like systemd-tmpfiles do not work as expected. Hmm .. this could be the reason for my problem with utmp: it started with a missing utmp and i tracked it down to syst

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Andrey Borzenkov
On Thu, Mar 3, 2011 at 5:48 PM, Marius Tolzmann wrote: > > hi.. > > On 03/03/11 13:52, Andrey Borzenkov wrote: >>> >>> since reiserfs always sets d_type to DT_UNKNOWN in dirent entries some >>> tools >>> like systemd-tmpfiles do not work as expected. >> >> Hmm .. this could be the reason for my pr

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Lennart Poettering
On Thu, 03.03.11 13:05, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > hello.. > > we are currently using reiserfs on our root-partition.. Urks, people still use that cruft? > > since reiserfs always sets d_type to DT_UNKNOWN in dirent entries > some tools like systemd-tmpfiles do not wor

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
hi On 03/03/11 16:30, Lennart Poettering wrote: On Thu, 03.03.11 13:05, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: hello.. we are currently using reiserfs on our root-partition.. Urks, people still use that cruft? at least we do.. .. how is this supposed to be handled? if the type

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
On 03/03/11 16:30, Lennart Poettering wrote: Please check current git (in particular 1a6f4df) if it covers all issues you raised. patch 1a6f4df works fine and fixes our issues.. thx.. m. -- Dipl.-Inf. Marius Tolzmann --.-- MPI f. m