~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to src/smap/smap.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  smap.c - Report overall state the system
3
3
 *****************************************************************************
4
4
 *  Copyright (C) 2004-2007 The Regents of the University of California.
5
 
 *  Copyright (C) 2008 Lawrence Livermore National Security.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
6
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
7
 *  Written by Danny Auble <da@llnl.gov>
8
8
 *
9
 
 *  LLNL-CODE-402394.
 
9
 *  CODE-OCEC-09-009. All rights reserved.
10
10
 *  
11
11
 *  This file is part of SLURM, a resource management program.
12
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
12
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
13
 *  Please also read the included file: DISCLAIMER.
13
14
 *  
14
15
 *  SLURM is free software; you can redistribute it and/or modify it under
15
16
 *  the terms of the GNU General Public License as published by the Free
230
231
                case JOBS:
231
232
                        get_job();
232
233
                        break;
 
234
                case RESERVATIONS:
 
235
                        get_reservation();
 
236
                        break;
233
237
                case SLURMPART:
234
238
                        get_slurm_part();
235
239
                        break;
247
251
                        get_bg_part();
248
252
                        break;
249
253
#else
250
 
                default:
 
254
                case COMMANDS:
 
255
                case BGPART:
251
256
                        error("Must be on a BG SYSTEM to run this command");
252
257
                        if(!params.commandline)
253
258
                                endwin();
367
372
                params.display = JOBS;
368
373
                return 1;
369
374
                break;
 
375
        case 'r':
 
376
                text_line_cnt = 0;
 
377
                grid_line_cnt = 0;
 
378
                params.display = RESERVATIONS;
 
379
                return 1;
 
380
                break;
370
381
#ifdef HAVE_BG
371
382
        case 'b':
372
383
                text_line_cnt = 0;
474
485
        case JOBS:
475
486
                get_job();
476
487
                break;
 
488
        case RESERVATIONS:
 
489
                get_reservation();
 
490
                break;
477
491
        case SLURMPART:
478
492
                get_slurm_part();
479
493
                break;