Here is the relevant section of strace:

---------------------------------------------------------------------------------------------
chmod("/etc/grub.d/05_debian_theme.dpkg-new", 0755) = 0
unlink("/etc/grub.d/05_debian_theme.dpkg-new") = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
write(6, "2011-05-05 13:21:57 status unpac"..., 56) = 56
write(4, "Package: grub-pc\nStatus: install"..., 1795) = 1795
ftruncate(4, 1795)                      = 0
fsync(4)                                = 0
close(4)                                = 0
munmap(0x7f32f8490000, 4096)            = 0
rename("/var/lib/dpkg/updates/tmp.i", "/var/lib/dpkg/updates/0011") = 0
open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fsync(4)                                = 0
close(4)                                = 0
open("/var/lib/dpkg/updates/tmp.i", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f32f8490000
write(4, "#padding\n#padding\n#padding\n#padd"..., 4096) = 4096
write(4, "padding\n#padding\n#padding\n#paddi"..., 512) = 512
lseek(4, 0, SEEK_SET)                   = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
write(6, "2011-05-05 13:21:58 status half-"..., 63) = 63
write(4, "Package: grub-pc\nStatus: install"..., 1802) = 1802
ftruncate(4, 1802)                      = 0
fsync(4)                                = 0
close(4)                                = 0
munmap(0x7f32f8490000, 4096)            = 0
rename("/var/lib/dpkg/updates/tmp.i", "/var/lib/dpkg/updates/0012") = 0
open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fsync(4)                                = 0
close(4)                                = 0
open("/var/lib/dpkg/updates/tmp.i", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f32f8490000
write(4, "#padding\n#padding\n#padding\n#padd"..., 4096) = 4096
write(4, "padding\n#padding\n#padding\n#paddi"..., 512) = 512
lseek(4, 0, SEEK_SET)                   = 0
stat("/var/lib/dpkg/info/grub-pc.postinst", {st_mode=S_IFREG|0755, 
st_size=23003, ...}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f32f8475a70) = 29950
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7f32f7d281e0}, {SIG_DFL, [], 
SA_RESTORER, 0x7f32f7d281e0}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f32f7d281e0}, {SIG_DFL, [], 
SA_RESTORER, 0x7f32f7d281e0}, 8) = 0
wait4(29950, grub-probe: error: cannot stat `/dev/root'.
^C <unfinished ...>
---------------------------------------------------------------------------------------------

/var/lib/dpkg/info/grub-pc.postinst is attached.  I can't make sense of it.

BTW, I fixed the 'no space left on device' on the other machine with a btrfs 
balance.  No one seems to know this, but even though df reports that 64% of the 
disk array is used, apparently one of the disks did get full somehow and was 
preventing even a simple mkdir.  But a balance fixed it.  

I thought balancing was supposed to be automatic in BTRFS?  

Is defrag not automatic?



On Thursday 5 May, 2011 12:55:44 you wrote:
> Excerpts from CACook's message of 2011-05-05 15:50:02 -0400:
> > 
> > I was afraid of this finger-pointing.
> 
> We're not finger pointing, but we also don't maintain the script that is
> failing.  I'm happy to patch up bugs in the FS (or point you to newer
> kernels that have them fixed) but at this point we don't have enough
> info to say if it is an FS problem or a debian package problem.
> 
> Perhaps if you ran it under strace?
> 
> Other distros don't have problems with btrfs on /, so somehow this is
> specific to debian's setup.
> 
> -chris
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Attachment: grub-pc.postinst
Description: application/shellscript

Reply via email to