I've got a file that when I try to sync it errors out with a permission problem. (0xC004100D is "Permission denied" (Player error)) This results in an inconsistent database error. (I've fsck'ed the drive multiple times, no problems reported.)
When I look at the fid, the song file is fine, but the tags file looks like this:
mataglap:/drive1/fids/_00022# cat 531
.@ .!@@@.A@``.a@.@ .@.@.@.@ .!@@@.A@``.a@.@ .@.@.@.@ .!@@@.A@``.a@.@ .@.@.@.@ .!@@@.A@``.a@.@ .@.@.@
mataglap:/drive1/fids/_00022#
Here's the next song, and in fact the next track from the same album:
mataglap:/drive1/fids/_00022# cat 541
artist=Runrig
bitrate=vs160
codec=vorbis
comment=EAC 0.95prebeta5 Ogg post-1.0.1>3B2 @q5
ctime=1079842502
date=1998
duration=231026
genre=Folk/Rock
length=4509214
offset=0
replaygain_album_gain=-2.35 dB
replaygain_album_peak=1.10969090
replaygain_track_gain=-3.43 dB
replaygain_track_peak=1.10969090
rid=7db600d652093cfe76fd341685deaac3
samplerate=44100
source=Beat the Drum
title=Satellite Flood
tracknr=2
trailer=0
type=tune
mataglap:/drive1/fids/_00022#
When I try to delete either 530 or 531:
mataglap:/drive1/fids/_00022# rm ./531
rm: remove write-protected file `./531'? y
rm: cannot unlink `./531': Operation not permitted
mataglap:/drive1/fids/_00022#
EDIT: yes, the drive was mounted rw.
My first thought is to look at the file attributes -- maybe the immutable bit
got set somehow -- but I can't find binaries for lsattr or chattr.
So I've got two questions for y'all:
1. Does anyone have binaries for lsattr or chattr that they could point me to? They
are part of e2fsprogs. (I haven't had any good luck getting a cross-compile enviro set
up.)
2. Any ideas why I can't delete the bad tag file? Is it safe to delete the two files
(530 & 531) and then rebuild the database? It seems like it should be...
--Nathan