Search Results

Search: Posts Made By: Loic Domaigne
32,364
Posted By Loic Domaigne
Gidday, just for the record - The procedure...
Gidday,

just for the record - The procedure to find the physical faulty disk worked. Only step 4. was not correct



The rebuild has been triggered simply with:
# mdadm --manage /dev/md1...
32,364
Posted By Loic Domaigne
Identify failed disk in Linux RAID
Good Evening,

2 years ago, I set up an Ubuntu file-server for a friend, who is a photograph amateur. Basically, the server offers a software RAID-5 that can be accessed remotely from a MAC....
Forum: Programming 06-19-2011
1,515
Posted By Loic Domaigne
Gidday Jao, Any good reason for not using...
Gidday Jao,

Any good reason for not using what's provided out of the box by the ls command?

Best, Loïc
Forum: Programming 06-19-2011
2,465
Posted By Loic Domaigne
You usually fork() after the accept(); in the...
You usually fork() after the accept(); in the child you close the listening socket and continue the processing with the connected socket returned by accept(); while in the parent you close the...
Forum: Programming 06-19-2011
6,209
Posted By Loic Domaigne
Because: you're freeing G->adj[i], not...
Because:

you're freeing G->adj[i], not G->adj[u].
If you would free G->adj[u], the pointer wouldn't be correct since you have already shifted.

You could perhaps get your code working by...
Forum: Programming 06-18-2011
6,209
Posted By Loic Domaigne
Hi Luke, I didn't spend much time with...
Hi Luke,


I didn't spend much time with your program, but it occured to me that these lines look rather suspicious:

for( i = u; i < G->nv; i++ )
if( i + 1 < G->nv ) G->adj[i] =...
Forum: Programming 06-18-2011
9,888
Posted By Loic Domaigne
You must first be prepared that the server close...
You must first be prepared that the server close unexpectedly the connection (e.g. due to a crash), that is:

read returns -1 and errno is set (e.g. ECONNRESET).
write cause SIGPIPE to be sent...
Forum: Programming 06-15-2011
4,262
Posted By Loic Domaigne
I strongly advise you to check the return code by...
I strongly advise you to check the return code by the system calls. That way, you'll catch early error like invalid mq descriptor caused by a failed mq_open.

HTH, Loïc
9,284
Posted By Loic Domaigne
That's Solaris 10; I think that DGPickett is...
That's Solaris 10; I think that DGPickett is interested in Solaris 8 (or earlier) since he mentioned M:N threading model. Indeed, starting from Solaris 9, they switched to a 1:1 model.


Cheers,...
9,284
Posted By Loic Domaigne
Which OSes are you targeting? Loïc
Which OSes are you targeting?

Loïc
9,284
Posted By Loic Domaigne
My understanding is that a good M:N scheduler...
My understanding is that a good M:N scheduler should avoid the situation that when an user level thread blocks, all the user level threads mapped to the lwp block (because the lwp itself blocks)....
Forum: Linux 06-07-2011
2,930
Posted By Loic Domaigne
fork+execve are both needed to create a new...
fork+execve are both needed to create a new process.

Cheers, Loïc
9,284
Posted By Loic Domaigne
This is my understanding how things are supposed...
This is my understanding how things are supposed to work . Warning: the last time I dealt intensively with such questions was 6 years ago, so I can't guarantee to get everything right.
...
Forum: Programming 06-03-2011
8,337
Posted By Loic Domaigne
You're forgiven. SO_RCVTIMEO has been...
You're forgiven.

SO_RCVTIMEO has been standardized with the Single Unix Specification ("aka Unix98"). The POSIX standard that deals with socket is IEEE Std 1003.1g-2000 ("aka Posix.1g") and...
Forum: Programming 06-01-2011
8,337
Posted By Loic Domaigne
Quoting yourself: I have a feeling that you have...
Quoting yourself: I have a feeling that you have no idea what you are talking about :p Not all systems support SO_RCVTIMEO, so this last statement obviously doesn't make sense...

Your reasoning is...
Forum: Programming 05-31-2011
8,337
Posted By Loic Domaigne
When for instance blocking forever is not...
When for instance blocking forever is not acceptable, and a timeout is needed... This is a classical requirement for real-world systems, and select() is one of the many possible ways to fulfill it.
...
Forum: Programming 05-31-2011
8,337
Posted By Loic Domaigne
This is supposed to be your reply to my answer, I...
This is supposed to be your reply to my answer, I guess?

If you read my answer carefully, you'll see that I just told the OP that it is not a problem to write/select at the same time on the ...
Forum: Programming 05-30-2011
8,337
Posted By Loic Domaigne
We're doing that without any problem. We have one...
We're doing that without any problem. We have one thread that blocks on the socket waiting for the server to send data; while another thread might independently send some data to the server. Works...
3,779
Posted By Loic Domaigne
Buy faster disks, perhaps? :D Seriously, I...
Buy faster disks, perhaps? :D

Seriously, I am not aware of an efficient general solution for this kind of problem... Does anybody know one? ...

How is this binary produced? Perhaps you can...
3,779
Posted By Loic Domaigne
use cat?
use cat?
Forum: Programming 05-27-2011
2,616
Posted By Loic Domaigne
store the pointer returned by strstr(), look for...
store the pointer returned by strstr(), look for the '=' sign, and after that location perform a sscanf() for instance.
9,284
Posted By Loic Domaigne
Hi DGPicket, perhaps I am not following you...
Hi DGPicket,

perhaps I am not following you completely...

When you say "LWP had different scheduler priorities", I assume you mean that these LWPs are using a real-time scheduling (like...
Forum: Programming 05-27-2011
1,665
Posted By Loic Domaigne
Something around those lines: #!/usr/bin/env...
Something around those lines:

#!/usr/bin/env python
import os

# assume we got the list from somewhere
list = ["apple", "oranges", "pears", "grapes"]

for fruit in list:
...
Forum: Programming 05-23-2011
10,005
Posted By Loic Domaigne
I still don't understand what you are trying to...
I still don't understand what you are trying to achieve:
- you have an UDP server ?
- this server should serve multiple UDP clients ?
- you want to use thread (e.g. one thread per client) ?
-...
Forum: Programming 05-22-2011
1,325
Posted By Loic Domaigne
You need to discretize your equation in time...
You need to discretize your equation in time (i.e. using small dt). You just then compute the y(t) for t=0 until the first t where y(t)<=0 (i.e. the projectile has reached the original elevation).
...
Showing results 1 to 25 of 237

 
All times are GMT -4. The time now is 12:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy