Sponsored Content
Full Discussion: New Array of disks
Operating Systems Solaris New Array of disks Post 302090857 by reborg on Wednesday 27th of September 2006 06:40:03 PM
Old 09-27-2006
The E450 does not by default have an array, but it does have the capacity for lots of internal disks if the additional backplanes are installed.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

create array holding characters from sring then echo array.

Hi, I wish to store $string1 in $string1array a character in each array element. Then i wish to echo the entire array to the screen so that it reads as the normal string again. I have been trying with the code below but does not work. Please help... To put string into array: ... (5 Replies)
Discussion started by: rorey_breaker
5 Replies

2. Solaris

adding existing disks to a 3510 array

I would like to extend a logical drive on our 3510. I have four unallocated disks which I would like to use for this purpose. The 3510 supports a Sun Cluster but for now all I wish to see is a "new" disk when I run format. I am a little familiar with the telnet/ssh session on the 3510 but am... (2 Replies)
Discussion started by: malcqv
2 Replies

3. Programming

Creating an array to hold posix thread ids: Only dynamic array works

I am facing a strange error while creating posix threads: Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output. Snippet 1 This works: -------------- int *threadids; threadids = (int *) malloc (num_threads * sizeof(int)); ... (4 Replies)
Discussion started by: kmehta
4 Replies

4. Solaris

6120 Array. Additional physical Disks and ZFS

Hi; I have 4 new disks in a 6120 Array attached to a SUN server running zfs. There are already two virtual disks on the array comprising of 3 disk raid 5 for each Vdisk. I need to add two more disks to each vdisk making each a 5 disk raid 5 Vdisk. If ZFS already has the original... (3 Replies)
Discussion started by: myjess
3 Replies

5. Shell Programming and Scripting

PHP: Search Multi-Dimensional(nested) array and export values of currenly worked on array.

Hi All, I'm writing a nagios check that will see if our ldap servers are in sync... I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies

6. Shell Programming and Scripting

perl, put one array into many array when field is equal to sth

Hi Everyone, #!/usr/bin/perl use strict; use warnings; my @test=("a;b;qqq;c;d","a;b;ggg;c;d","a;b;qqq;c;d"); would like to split the @test array into two array: @test1=(("a;b;qqq;c;d","a;b;qqq;c;d"); and @test2=("a;b;ggg;c;d"); means search for 3rd filed. Thanks find the... (0 Replies)
Discussion started by: jimmy_y
0 Replies

7. Shell Programming and Scripting

How to enumerate mounted disks and place output in array ?

Hi. I'm new to scripting / programming and was wondering what the best way to output all mounted storage devices and their names to an array would be ? I would like to achieve this using the bash shell. Any assistance with this would be greatly appreciated. Regards, Jonno :b: (4 Replies)
Discussion started by: Jonno888
4 Replies

8. Shell Programming and Scripting

PERL : Read an array and write to another array with intial string pattern checks

I have an array and two variables as below, I need to check if $datevar is present in $filename. If so, i need to replace $filename with the values in the array. I need the output inside an ARRAY How can this be done. Any help will be appreciated. Thanks in advance. (2 Replies)
Discussion started by: irudayaraj
2 Replies

9. Shell Programming and Scripting

Bash 3.2 - Array / Regex - IF 3rd member in array ends in 5 digits then do somthing...

Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help. pesudo code if == ENDSINFIVEINTS ]]; then do... (4 Replies)
Discussion started by: briandanielz
4 Replies

10. Shell Programming and Scripting

Bash arrays: rebin/interpolate smaller array to large array

hello, i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N. for case 1, I want to stretch N to fit M arrayHuge H = (... (2 Replies)
Discussion started by: f77hack
2 Replies
PROP_ARRAY(3)						   BSD Library Functions Manual 					     PROP_ARRAY(3)

NAME
prop_array, prop_array_create, prop_array_create_with_capacity, prop_array_copy, prop_array_copy_mutable, prop_array_capacity, prop_array_count, prop_array_ensure_capacity, prop_array_iterator, prop_array_make_immutable, prop_array_mutable, prop_array_get, prop_array_set, prop_array_add, prop_array_remove, prop_array_externalize, prop_array_internalize, prop_array_externalize_to_file, prop_array_internalize_from_file, prop_array_externalize_to_pref, prop_array_internalize_from_pref, prop_array_equals -- array property col- lection object LIBRARY
Property Container Object Library (libprop, -lprop) SYNOPSIS
#include <prop/proplib.h> prop_array_t prop_array_create(void); prop_array_t prop_array_create_with_capacity(unsigned int capacity); prop_array_t prop_array_copy(prop_array_t array); prop_array_t prop_array_copy_mutable(prop_array_t array); unsigned int prop_array_capacity(prop_array_t array); unsigned int prop_array_count(prop_array_t array); bool prop_array_ensure_capacity(prop_array_t array, unsigned int capacity); prop_object_iterator_t prop_array_iterator(prop_array_t array); void prop_array_make_immutable(prop_array_t array); bool prop_array_mutable(prop_array_t array); prop_object_t prop_array_get(prop_array_t array, unsigned int index); bool prop_array_set(prop_array_t array, unsigned int index, prop_object_t obj); bool prop_array_add(prop_array_t array, prop_object_t obj); void prop_array_remove(prop_array_t array, unsigned int index); char * prop_array_externalize(prop_array_t array); prop_array_t prop_array_internalize(const char *xml); bool prop_array_externalize_to_file(prop_array_t array, const char *path); prop_array_t prop_array_internalize_from_file(const char *path); bool prop_array_externalize_to_pref(prop_array_t array, struct plistref *pref); bool prop_array_internalize_from_pref(const struct plistref *pref, prop_array_t *arrayp); bool prop_array_equals(prop_array_t array1, prop_array_t array2); DESCRIPTION
The prop_array family of functions operate on the array property collection object type. An array is an ordered set; an iterated array will return objects in the same order with which they were stored. prop_array_create(void) Create an empty array. The array initially has no capacity. Returns NULL on failure. prop_array_create_with_capacity(unsigned int capacity) Create an array with the capacity to store capacity objects. Returns NULL on failure. prop_array_copy(prop_array_t array) Copy an array. The new array has an initial capacity equal to the number of objects stored in the array being copied. The new array contains references to the original array's objects, not copies of those objects (i.e. a shallow copy is made). If the original array is immutable, the resulting array is also immutable. Returns NULL on failure. prop_array_copy_mutable(prop_array_t array) Like prop_array_copy(), except the resulting array is always mutable. prop_array_capacity(prop_array_t array) Returns the total capacity of the array, including objects already stored in the array. If the supplied object isn't an array, zero is returned. prop_array_count(prop_array_t array) Returns the number of objects stored in the array. If the supplied object isn't an array, zero is returned. prop_array_ensure_capacity(prop_array_t array, unsigned int capacity) Ensure that the array has a total capacity of capacity, including objects already stored in the array. Returns true if the capacity of the array is greater or equal to capacity or if expansion of the array's capacity was successful and false otherwise. prop_array_iterator(prop_array_t array) Create an iterator for the array. The array is retained by the iterator. An array iterator returns the object references stored in the array. Storing to or removing from the array invalidates any active iterators for the array. Returns NULL on failure. prop_array_make_immutable(prop_array_t array) Make array immutable. prop_array_mutable(prop_array_t array) Returns true if the array is mutable. prop_array_get(prop_array_t array, unsigned int index) Return the object stored at the array index index. Returns NULL on failure. prop_array_set(prop_array_t array, unsigned int index, prop_object_t obj) Store a reference to the object obj at the array index index. This function is not allowed to create holes in the array; the caller must either be setting the object just beyond the existing count or replacing an already existing object reference. The object will be retained by the array. If an existing object reference is being replaced, that object will be released. Returns true if storing the object was successful and false otherwise. prop_array_add(prop_array_t array, prop_object_t obj) Add a reference to the object obj to the array, appending to the end and growing the array's capacity if necessary. The object will be retained by the array. Returns true if storing the object was successful and false otherwise. During expansion, array's capacity is augmented by the EXPAND_STEP constant, as defined in libprop/prop_array.c file, e.g. #define EXPAND_STEP 16 prop_array_remove(prop_array_t array, unsigned int index) Remove the reference to the object stored at array index index. The object will be released and the array compacted following the removal. prop_array_externalize(prop_array_t array) Externalizes an array, returning a NUL-terminated buffer containing the XML representation of the array. The caller is responsible for freeing the returned buffer. If converting to the external representation fails for any reason, NULL is returned. In user space, the buffer is allocated using malloc(3). In the kernel, the buffer is allocated using malloc(9) using the malloc type M_TEMP. prop_array_internalize(const char *xml) Parse the XML representation of a property list in the NUL-terminated buffer xml and return the corresponding array. Returns NULL if parsing fails for any reason. prop_array_externalize_to_file(prop_array_t array, const char *path) Externalizes an array and writes it to the file specified by path. The file is saved with the mode 0666 as modified by the process's file creation mask (see umask(2)) and is written atomically. Returns false if externalizing or writing the array fails for any rea- son. prop_array_internalize_from_file(const char *path) Reads the XML property list contained in the file specified by path, internalizes it, and returns the corresponding array. Returns NULL on failure. prop_array_externalize_to_pref(prop_array_t array, struct plistref *pref) Externalizes an array and packs it into the plistref specified by pref. Returns false if externalizing the array fails for any rea- son. prop_array_internalize_from_pref(const struct plistref *pref, prop_array_t *arrayp) Reads the plistref specified by pref, internalizes it, and returns the corresponding array. Returns false if internalizing or writing the array fails for any reason. prop_array_equals(prop_array_t array1, prop_array_t array2) Returns true if the two arrays are equivalent. If at least one of the supplied objects isn't an array, false is returned. Note: Objects contained in the array are compared by value, not by reference. SEE ALSO
prop_bool(3), prop_data(3), prop_dictionary(3), prop_number(3), prop_object(3), prop_string(3), proplib(3) HISTORY
The proplib property container object library first appeared in NetBSD 4.0. BSD
October 10, 2009 BSD
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy