home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / scrconf / proc_partitions.scr < prev    next >
Encoding:
Text File  |  2006-11-29  |  1.0 KB  |  50 lines

  1. /**
  2.  * File:
  3.  *   proc_swaps.scr
  4.  * Summary:
  5.  *   SCR Agent for reading /proc/swaps
  6.  * Access:
  7.  *   read
  8.  * Authors:
  9.  *   Johannes Buchhold <jbuch@suse.de>
  10.  * 
  11.  * Example: /proc/swaps
  12.  *   Filename                        Type            Size    Used    Priority
  13.  *  /dev/hda2                       partition       136544  82256   -1 
  14.  *   
  15.  *     ...
  16.  **
  17.  *   Read(.proc.swaps)
  18.  *   ([ $["file":"/dev/hda2", "type": "partition", "size":"136544",
  19.  *        "used": "82256" ,  "priority": "-1"], 
  20.  *    
  21.  *     ...
  22.  *   ])
  23.  *
  24.  * $Id: proc_partitions.scr 13018 2003-12-11 12:52:53Z jhumpol $
  25.  *
  26.  */
  27. .proc.partitions
  28.  
  29. `ag_anyagent(
  30.   `Description (
  31.       (`File("/proc/partitions")),    // real file name
  32.       "major\n",            // Comment
  33.       false,            // read-only
  34.       (`List (
  35.         `Tuple (
  36.           `Separator ("\t "),
  37.           `major (`Number()),
  38.           `Separator ("\t "),
  39.           `minor (`Number()),
  40.           `Separator ("\t "),
  41.           `size (`Number()),
  42.       `Separator ("\t "),
  43.           `name (`String("^\n\t ")),
  44.       `Optional (`String("^\n"))
  45.         ),
  46.         "\n"
  47.       ))
  48.     )
  49. )
  50.