mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-25 21:22:05 +00:00
Currently the getadapter implementation store the nics information in multiple files. This implementaion will store the records in the database and add the following changes: 1. Add taskstate table to record the getadapter request. 2. Add route_request hook in xcatd to avoid of too much process. 3. Add adapterinfo column to keep the adapter information. 4. Use fifo pipe to send/recv the adapter message and wake up the waiting process. 5. Use alarm signal to handle the timeout event.
16 lines
382 B
Perl
16 lines
382 B
Perl
#!/usr/bin/env perl
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
package xCAT::State;
|
|
|
|
use constant REQUEST_ERROR => 0;
|
|
use constant REQUEST_WAIT => 1;
|
|
use constant REQUEST_UPDATE => 2;
|
|
|
|
use constant WAIT_STATE => 'waiting';
|
|
use constant UPDATE_STATE => 'updating';
|
|
|
|
use constant INSPECT_ACTION => 'inspect';
|
|
use constant UPDATE_ACTION => 'update';
|
|
|
|
1;
|