]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: follow terminal-colors.d
authorKarel Zak <kzak@redhat.com>
Tue, 11 Mar 2014 11:22:35 +0000 (12:22 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Mar 2014 11:22:35 +0000 (12:22 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c
tests/expected/fdisk/gpt

index 5c04c170d92ac463d67b76d4eea8d306982bf51a..0b1641eb204a0145c8151797abdd234b8292bd2e 100644 (file)
@@ -1787,7 +1787,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
 
 int main(int argc, char *argv[])
 {
-       int rc, c, colormode = UL_COLORMODE_AUTO;
+       int rc, c, colormode = UL_COLORMODE_UNDEF;
        struct cfdisk _cf = { .lines_idx = 0 },
                      *cf = &_cf;
 
index 7fb752adb46821123e3ce40ebe4865d1992fbe47..2ca66ab842d3d83802fe65a7fbc2669725558b96 100644 (file)
@@ -23,15 +23,15 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt
 Disk identifier: <removed>
 
-Device             Start          End Size Type
-<removed>1         2048         4095   1M EFI System
-<removed>2         4096         6143   1M Linux filesystem
-<removed>3         6144         8191   1M Linux filesystem
-<removed>4         8192        10239   1M Linux filesystem
-<removed>5        10240        12287   1M Linux filesystem
-<removed>6        12288        14335   1M Linux filesystem
-<removed>7        14336        16383   1M Linux filesystem
-<removed>8        16384        18431   1M Linux filesystem
+Device             Start   End Sectors Size Type
+<removed>1  2048  4095    2048   1M EFI System
+<removed>2  4096  6143    2048   1M Linux filesystem
+<removed>3  6144  8191    2048   1M Linux filesystem
+<removed>4  8192 10239    2048   1M Linux filesystem
+<removed>5 10240 12287    2048   1M Linux filesystem
+<removed>6 12288 14335    2048   1M Linux filesystem
+<removed>7 14336 16383    2048   1M Linux filesystem
+<removed>8 16384 18431    2048   1M Linux filesystem
 
 -------------------
 
@@ -45,15 +45,15 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt
 Disk identifier: <removed>
 
-Device             Start          End Size Type
-<removed>1         2048         4095   1M EFI System
-<removed>2         4096         6143   1M Linux filesystem
-<removed>3         6144         8191   1M Linux filesystem
-<removed>4         8192        10239   1M Linux filesystem
-<removed>5        10240        12287   1M Linux swap
-<removed>6        12288        14335   1M Linux filesystem
-<removed>7        14336        16383   1M Linux filesystem
-<removed>8        16384        18431   1M Linux filesystem
+Device             Start   End Sectors Size Type
+<removed>1  2048  4095    2048   1M EFI System
+<removed>2  4096  6143    2048   1M Linux filesystem
+<removed>3  6144  8191    2048   1M Linux filesystem
+<removed>4  8192 10239    2048   1M Linux filesystem
+<removed>5 10240 12287    2048   1M Linux swap
+<removed>6 12288 14335    2048   1M Linux filesystem
+<removed>7 14336 16383    2048   1M Linux filesystem
+<removed>8 16384 18431    2048   1M Linux filesystem
 
 -------------------
 
@@ -67,14 +67,14 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt
 Disk identifier: <removed>
 
-Device             Start          End Size Type
-<removed>1         2048         4095   1M EFI System
-<removed>3         6144         8191   1M Linux filesystem
-<removed>4         8192        10239   1M Linux filesystem
-<removed>5        10240        12287   1M Linux swap
-<removed>6        12288        14335   1M Linux filesystem
-<removed>7        14336        16383   1M Linux filesystem
-<removed>8        16384        18431   1M Linux filesystem
+Device             Start   End Sectors Size Type
+<removed>1  2048  4095    2048   1M EFI System
+<removed>3  6144  8191    2048   1M Linux filesystem
+<removed>4  8192 10239    2048   1M Linux filesystem
+<removed>5 10240 12287    2048   1M Linux swap
+<removed>6 12288 14335    2048   1M Linux filesystem
+<removed>7 14336 16383    2048   1M Linux filesystem
+<removed>8 16384 18431    2048   1M Linux filesystem
 
 -------------------
 
@@ -88,15 +88,15 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt
 Disk identifier: <removed>
 
-Device             Start          End Size Type
-<removed>1         2048         4095   1M EFI System
-<removed>2         4096         6143   1M Linux filesystem
-<removed>3         6144         8191   1M Linux filesystem
-<removed>4         8192        10239   1M Linux filesystem
-<removed>5        10240        12287   1M Linux swap
-<removed>6        12288        14335   1M Linux filesystem
-<removed>7        14336        16383   1M Linux filesystem
-<removed>8        16384        18431   1M Linux filesystem
+Device             Start   End Sectors Size Type
+<removed>1  2048  4095    2048   1M EFI System
+<removed>2  4096  6143    2048   1M Linux filesystem
+<removed>3  6144  8191    2048   1M Linux filesystem
+<removed>4  8192 10239    2048   1M Linux filesystem
+<removed>5 10240 12287    2048   1M Linux swap
+<removed>6 12288 14335    2048   1M Linux filesystem
+<removed>7 14336 16383    2048   1M Linux filesystem
+<removed>8 16384 18431    2048   1M Linux filesystem
 
 -------------------
 
@@ -110,15 +110,15 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt
 Disk identifier: <removed>
 
-Device             Start          End Size Type
-<removed>1         2048         4095   1M EFI System
-<removed>2         4096         6143   1M Linux filesystem
-<removed>3         6144         8191   1M Linux filesystem
-<removed>4         8192        10239   1M Linux filesystem
-<removed>5        10240        12287   1M Linux swap
-<removed>6        12288        14335   1M Linux filesystem
-<removed>7        14336        16383   1M Linux filesystem
-<removed>8        16384        18431   1M Linux filesystem
+Device             Start   End Sectors Size Type
+<removed>1  2048  4095    2048   1M EFI System
+<removed>2  4096  6143    2048   1M Linux filesystem
+<removed>3  6144  8191    2048   1M Linux filesystem
+<removed>4  8192 10239    2048   1M Linux filesystem
+<removed>5 10240 12287    2048   1M Linux swap
+<removed>6 12288 14335    2048   1M Linux filesystem
+<removed>7 14336 16383    2048   1M Linux filesystem
+<removed>8 16384 18431    2048   1M Linux filesystem
 
 -------------------
 
@@ -132,15 +132,15 @@ I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt
 Disk identifier: <removed>
 
-Device             Start          End Size Type
-<removed>1         2048         4095   1M EFI System
-<removed>2         4096         6143   1M Linux filesystem
-<removed>3         6144         8191   1M Linux filesystem
-<removed>4         8192        10239   1M Linux filesystem
-<removed>5        10240        12287   1M Linux swap
-<removed>6        12288        14335   1M Linux filesystem
-<removed>7        14336        16383   1M Linux filesystem
-<removed>8        16384        18431   1M Linux filesystem
+Device             Start   End Sectors Size Type
+<removed>1  2048  4095    2048   1M EFI System
+<removed>2  4096  6143    2048   1M Linux filesystem
+<removed>3  6144  8191    2048   1M Linux filesystem
+<removed>4  8192 10239    2048   1M Linux filesystem
+<removed>5 10240 12287    2048   1M Linux swap
+<removed>6 12288 14335    2048   1M Linux filesystem
+<removed>7 14336 16383    2048   1M Linux filesystem
+<removed>8 16384 18431    2048   1M Linux filesystem
 
 -------------------