Hello,
If udp-receiver is writing to a pipe and the pipe fails, udp-receiver
will incorrectly exit with a returncode of zero. This is easily tested
with a trivial pipe program that copies stdin to stdout, but exits with
a nonzero status upon encountering eof.
Adding the following to startReceiver() in udpr-negotiate.c is
sufficient to fix this behavior:
<---- cut here
int ret;
...
if(pipePid) {
ret=udpc_waitForProcess(pipePid, "Pipe");
}
...
return ret;
<---- cut here
Regards,
George Coulouris
National Center for Biotechnology Information (contractor)
On 2012-04-24 18:49, Molnár Bence wrote:
[...]
> Well, i already checked this, and its not mounted based on this. I also
> checked it with fuser, killed the showed process number.
Indeed, it seems like the dialog system did not correctly release the
disk's file descriptor after issuing some optimizing ioctls.
This is now fixed in version 20120424
Regards,
Alain
On 24/04/12 16:19, Molnar Bence wrote:
[...]
> Both client boots fine. After transfer, on the destination client, i try
> to mount the partiton with ntfs-3g, and fails.
> (mkdir /mnt && cp /bin/fuse.ko /lib/modules/3.1.6udpcast/kernel/ &&
> depmod -a && modprobe fuse && /bin/ntfs-3g /dev/sda1 /mnt)
>
> Failed to write lock '/dev/sda1': Permission denied
> Error opening '/dev/sda1': Permission denied
> Failed to mount '/dev/sda1': Permission denied
By googling for the error messages, I found out that this was issued by
the last of your commands (/bin/ntfs-3g /dev/sda1 /mnt)
Most forums talking about this issue suggest that maybe the lock fails
because the device is already mounted.
You can find out whether this is actually the case by looking at
/proc/mounts .
>
> I also tried to compile ntfs-3g with external fuse without results.
>
> Thanks for help.
>
> Now i tried to compile the entire udpcast and create an own image, but
> its failed also. Buildroot is compiled, but the compilation of busybox
> failed, it misses cc1 (i386-unknown-linux-uclibc-gcc: error trying to
> exec 'cc1': execvp: No such file or directory). But its a different
> stroy, if first problem solved, i dont care about this story.
Udpcast's busybox is now compiled with uclibc, in order to generate a
more compact executable. You need to install an uclibc environment first
(such as buildroot :http://buildroot.uclibc.org/ )
When compiling uclibc, make sure you chose "large file support" in make
menuconfig (ToolChain -> Toolchain Options, scroll way down, then check
"Enable large file (files > 2GB) support")
>
> regards,
> Bence
>
Regards,
Alain
Hi All,
I tried to add ntfs-3g to udőcast. I compiled it on a different machine,
with static (and disabled mtab), and added as a binary at the online
initrd creation stuff.
I also compiled the fuse module from kernel source and added as a binary
also.
When i run udpcast (pxe), i cp the fuse.ko to the right place and
perform a depmod -a.
Sofar the kernel module is loaded, ntfs-3g exist, but results a
permission denied on /dev/sda1.
Because there is no strace, i cant figure it out, whats the problem,
/dev/sda1 and ntfs-3g permission seems to be ok, i can also cat /dev/sda1.
Since im not an exprert, can somebody help me, how to integrate ntfs-3g
to udpcast?
(I run everything in virtualbox, i hope, its not a prboblem, simple
udpcast runs ok)
Thanks,
Bence