Changes between Initial Version and Version 1 of Ticket #696, comment 1


Ignore:
Timestamp:
Jun 5, 2013, 8:22:37 PM (12 years ago)
Author:
victor gattegno

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #696, comment 1

    initial v1  
    1 Sorry, if for example %s=VGDD0, then it should be :
     1Sorry, it was right, if for example %s=VGDD0.
     2
     3But, in the awk, shouldn't it be the following ?
    24
    35{{{
    4 mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s\"|awk '{printf(\"%%s \",$3)}END{print \"\"}'", VG, VG);
     6mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s/\"|awk '{print(\"%%s \",$3)}END{print \"\"}'", VG, VG, VG);
    57}}}
     8
     9Example :
     10
     11{{{
     12# mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/"
     13/dev/mapper/VGDD0-LVDD0 on /mnt/data0 type ext3 (rw)
     14
     15# mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/" |awk '{print($1, $3)}END{print ""}'
     16/dev/mapper/VGDD0-LVDD0 /mnt/data0
     17}}}