aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 15:57:44 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 15:57:44 +0100
commit60cb48ca50fcff24aa6c3927f51e4a508fa118f4 (patch)
tree493e30821f3d484b7395ce9d9e4be39ec9a43126 /util-linux
parentb8173b603f57dcf918a67f1ec00763ab5f4e1cf8 (diff)
downloadbusybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.gz
busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.bz2
busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.zip
whitespace cleanup. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk_osf.c5
-rw-r--r--util-linux/fsck_minix.c67
-rw-r--r--util-linux/getopt.c2
-rw-r--r--util-linux/ipcs.c2
-rw-r--r--util-linux/volume_id/nilfs.c2
-rw-r--r--util-linux/volume_id/ntfs.c4
-rw-r--r--util-linux/volume_id/udf.c2
-rw-r--r--util-linux/volume_id/unused_msdos.c2
-rw-r--r--util-linux/volume_id/unused_silicon_raid.c2
9 files changed, 43 insertions, 45 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index 65e6bd7c4..ff16389bd 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -898,8 +898,7 @@ xbsd_initlabel(struct partition *p)
898 pp->p_fstype = BSD_FS_UNUSED; 898 pp->p_fstype = BSD_FS_UNUSED;
899#else 899#else
900 d->d_npartitions = 3; 900 d->d_npartitions = 3;
901 pp = &d->d_partitions[2]; /* Partition C should be 901 pp = &d->d_partitions[2]; /* Partition C should be the whole disk */
902 the whole disk */
903 pp->p_offset = 0; 902 pp->p_offset = 0;
904 pp->p_size = d->d_secperunit; 903 pp->p_size = d->d_secperunit;
905 pp->p_fstype = BSD_FS_UNUSED; 904 pp->p_fstype = BSD_FS_UNUSED;
@@ -935,7 +934,7 @@ xbsd_readlabel(struct partition *p)
935 fdisk_fatal(unable_to_read); 934 fdisk_fatal(unable_to_read);
936 935
937 memmove(d, &disklabelbuffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], 936 memmove(d, &disklabelbuffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET],
938 sizeof(struct xbsd_disklabel)); 937 sizeof(struct xbsd_disklabel));
939 938
940 if (d->d_magic != BSD_DISKMAGIC || d->d_magic2 != BSD_DISKMAGIC) 939 if (d->d_magic != BSD_DISKMAGIC || d->d_magic2 != BSD_DISKMAGIC)
941 return 0; 940 return 0;
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 1508ecb03..c1d1b2cc3 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -13,7 +13,7 @@
13 * 10.11.91 - updated, does checking, no repairs yet. 13 * 10.11.91 - updated, does checking, no repairs yet.
14 * Sent out to the mailing-list for testing. 14 * Sent out to the mailing-list for testing.
15 * 15 *
16 * 14.11.91 - Testing seems to have gone well. Added some 16 * 14.11.91 - Testing seems to have gone well. Added some
17 * correction-code, and changed some functions. 17 * correction-code, and changed some functions.
18 * 18 *
19 * 15.11.91 - More correction code. Hopefully it notices most 19 * 15.11.91 - More correction code. Hopefully it notices most
@@ -22,11 +22,10 @@
22 * 16.11.91 - More corrections (thanks to Mika Jalava). Most 22 * 16.11.91 - More corrections (thanks to Mika Jalava). Most
23 * things seem to work now. Yeah, sure. 23 * things seem to work now. Yeah, sure.
24 * 24 *
25 * 25 * 19.04.92 - Had to start over again from this old version, as a
26 * 19.04.92 - Had to start over again from this old version, as a
27 * kernel bug ate my enhanced fsck in february. 26 * kernel bug ate my enhanced fsck in february.
28 * 27 *
29 * 28.02.93 - added support for different directory entry sizes.. 28 * 28.02.93 - added support for different directory entry sizes..
30 * 29 *
31 * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with 30 * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with
32 * superblock information 31 * superblock information
@@ -35,31 +34,31 @@
35 * to that required by fsutil 34 * to that required by fsutil
36 * 35 *
37 * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu) 36 * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu)
38 * Added support for file system valid flag. Also 37 * Added support for file system valid flag. Also
39 * added program_version variable and output of 38 * added program_version variable and output of
40 * program name and version number when program 39 * program name and version number when program
41 * is executed. 40 * is executed.
42 * 41 *
43 * 30.10.94 - added support for v2 filesystem 42 * 30.10.94 - added support for v2 filesystem
44 * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de) 43 * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de)
45 * 44 *
46 * 10.12.94 - added test to prevent checking of mounted fs adapted 45 * 10.12.94 - added test to prevent checking of mounted fs adapted
47 * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck 46 * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck
48 * program. (Daniel Quinlan, quinlan@yggdrasil.com) 47 * program. (Daniel Quinlan, quinlan@yggdrasil.com)
49 * 48 *
50 * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such 49 * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such
51 * for modern libcs (janl@math.uio.no, Nicolai Langfeldt) 50 * for modern libcs (janl@math.uio.no, Nicolai Langfeldt)
52 * 51 *
53 * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk 52 * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk
54 * (Russell King). He made them for ARM. It would seem 53 * (Russell King). He made them for ARM. It would seem
55 * that the ARM is powerful enough to do this in C whereas 54 * that the ARM is powerful enough to do this in C whereas
56 * i386 and m64k must use assembly to get it fast >:-) 55 * i386 and m64k must use assembly to get it fast >:-)
57 * This should make minix fsck system-independent. 56 * This should make minix fsck system-independent.
58 * (janl@math.uio.no, Nicolai Langfeldt) 57 * (janl@math.uio.no, Nicolai Langfeldt)
59 * 58 *
60 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler 59 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler
61 * warnings. Added mc68k bitops from 60 * warnings. Added mc68k bitops from
62 * Joerg Dorchain <dorchain@mpi-sb.mpg.de>. 61 * Joerg Dorchain <dorchain@mpi-sb.mpg.de>.
63 * 62 *
64 * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by 63 * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by
65 * Andreas Schwab. 64 * Andreas Schwab.
@@ -1131,7 +1130,7 @@ static void check_counts(void)
1131 continue; 1130 continue;
1132 } 1131 }
1133 printf("Zone %d: %sin use, counted=%d\n", 1132 printf("Zone %d: %sin use, counted=%d\n",
1134 i, zone_in_use(i) ? "" : "not ", zone_count[i]); 1133 i, zone_in_use(i) ? "" : "not ", zone_count[i]);
1135 } 1134 }
1136} 1135}
1137 1136
@@ -1183,7 +1182,7 @@ static void check_counts2(void)
1183 continue; 1182 continue;
1184 } 1183 }
1185 printf("Zone %d: %sin use, counted=%d\n", 1184 printf("Zone %d: %sin use, counted=%d\n",
1186 i, zone_in_use(i) ? "" : "not ", zone_count[i]); 1185 i, zone_in_use(i) ? "" : "not ", zone_count[i]);
1187 } 1186 }
1188} 1187}
1189#endif 1188#endif
@@ -1253,7 +1252,7 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv)
1253 printf("Forcing filesystem check on %s\n", device_name); 1252 printf("Forcing filesystem check on %s\n", device_name);
1254 else if (OPT_repair) 1253 else if (OPT_repair)
1255 printf("Filesystem on %s is dirty, needs checking\n", 1254 printf("Filesystem on %s is dirty, needs checking\n",
1256 device_name); 1255 device_name);
1257 1256
1258 read_tables(); 1257 read_tables();
1259 1258
@@ -1280,23 +1279,23 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv)
1280 if (!inode_in_use(i)) 1279 if (!inode_in_use(i))
1281 free_cnt++; 1280 free_cnt++;
1282 printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt), 1281 printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt),
1283 100 * (INODES - free_cnt) / INODES); 1282 100 * (INODES - free_cnt) / INODES);
1284 for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++) 1283 for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++)
1285 if (!zone_in_use(i)) 1284 if (!zone_in_use(i))
1286 free_cnt++; 1285 free_cnt++;
1287 printf("%6u zones used (%u%%)\n\n" 1286 printf("%6u zones used (%u%%)\n\n"
1288 "%6u regular files\n" 1287 "%6u regular files\n"
1289 "%6u directories\n" 1288 "%6u directories\n"
1290 "%6u character device files\n" 1289 "%6u character device files\n"
1291 "%6u block device files\n" 1290 "%6u block device files\n"
1292 "%6u links\n" 1291 "%6u links\n"
1293 "%6u symbolic links\n" 1292 "%6u symbolic links\n"
1294 "------\n" 1293 "------\n"
1295 "%6u files\n", 1294 "%6u files\n",
1296 (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES, 1295 (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES,
1297 regular, directory, chardev, blockdev, 1296 regular, directory, chardev, blockdev,
1298 links - 2 * directory + 1, symlinks, 1297 links - 2 * directory + 1, symlinks,
1299 total - 2 * directory + 1); 1298 total - 2 * directory + 1);
1300 } 1299 }
1301 if (changed) { 1300 if (changed) {
1302 write_tables(); 1301 write_tables();
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index d662c813a..1ae0c59db 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -372,7 +372,7 @@ int getopt_main(int argc, char **argv)
372 if (!argv[1]) { 372 if (!argv[1]) {
373 if (compatible) { 373 if (compatible) {
374 /* For some reason, the original getopt gave no error 374 /* For some reason, the original getopt gave no error
375 when there were no arguments. */ 375 * when there were no arguments. */
376 printf(" --\n"); 376 printf(" --\n");
377 return 0; 377 return 0;
378 } 378 }
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index 8fdaf0b85..2668cafd4 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -152,7 +152,7 @@ static NOINLINE void do_shm(void)
152 if ((shmctl(0, IPC_INFO, (struct shmid_ds *) (void *) &shminfo)) < 0) 152 if ((shmctl(0, IPC_INFO, (struct shmid_ds *) (void *) &shminfo)) < 0)
153 return; 153 return;
154 /* glibc 2.1.3 and all earlier libc's have ints as fields 154 /* glibc 2.1.3 and all earlier libc's have ints as fields
155 of struct shminfo; glibc 2.1.91 has unsigned long; ach */ 155 * of struct shminfo; glibc 2.1.91 has unsigned long; ach */
156 printf("max number of segments = %lu\n" 156 printf("max number of segments = %lu\n"
157 "max seg size (kbytes) = %lu\n" 157 "max seg size (kbytes) = %lu\n"
158 "max total shared memory (pages) = %lu\n" 158 "max total shared memory (pages) = %lu\n"
diff --git a/util-linux/volume_id/nilfs.c b/util-linux/volume_id/nilfs.c
index ffa86d43c..b88a9e435 100644
--- a/util-linux/volume_id/nilfs.c
+++ b/util-linux/volume_id/nilfs.c
@@ -86,7 +86,7 @@ int FAST_FUNC volume_id_probe_nilfs(struct volume_id *id /*,uint64_t off*/)
86 // When used it is at 4K from the end of the partition (sb->s_dev_size - NILFS_SB2_OFFSET). 86 // When used it is at 4K from the end of the partition (sb->s_dev_size - NILFS_SB2_OFFSET).
87 87
88 volume_id_set_label_string(id, sb->s_volume_name, NILFS_LABEL_SIZE < VOLUME_ID_LABEL_SIZE ? 88 volume_id_set_label_string(id, sb->s_volume_name, NILFS_LABEL_SIZE < VOLUME_ID_LABEL_SIZE ?
89 NILFS_LABEL_SIZE : VOLUME_ID_LABEL_SIZE); 89 NILFS_LABEL_SIZE : VOLUME_ID_LABEL_SIZE);
90 volume_id_set_uuid(id, sb->s_uuid, UUID_DCE); 90 volume_id_set_uuid(id, sb->s_uuid, UUID_DCE);
91 91
92 if (sb->s_rev_level == 2) 92 if (sb->s_rev_level == 2)
diff --git a/util-linux/volume_id/ntfs.c b/util-linux/volume_id/ntfs.c
index 547f141c9..7b2612f01 100644
--- a/util-linux/volume_id/ntfs.c
+++ b/util-linux/volume_id/ntfs.c
@@ -132,7 +132,7 @@ int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/)
132 dbg("mft record size %i", mft_record_size); 132 dbg("mft record size %i", mft_record_size);
133 133
134 buf = volume_id_get_buffer(id, off + mft_off + (MFT_RECORD_VOLUME * mft_record_size), 134 buf = volume_id_get_buffer(id, off + mft_off + (MFT_RECORD_VOLUME * mft_record_size),
135 mft_record_size); 135 mft_record_size);
136 if (buf == NULL) 136 if (buf == NULL)
137 goto found; 137 goto found;
138 138
@@ -165,7 +165,7 @@ int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/)
165 break; 165 break;
166 166
167 dbg("found attribute type 0x%x, len %i, at offset %i", 167 dbg("found attribute type 0x%x, len %i, at offset %i",
168 attr_type, attr_len, attr_off); 168 attr_type, attr_len, attr_off);
169 169
170// if (attr_type == MFT_RECORD_ATTR_VOLUME_INFO) { 170// if (attr_type == MFT_RECORD_ATTR_VOLUME_INFO) {
171// struct volume_info *info; 171// struct volume_info *info;
diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c
index cd63c8d8a..d3747fb8e 100644
--- a/util-linux/volume_id/udf.c
+++ b/util-linux/volume_id/udf.c
@@ -109,7 +109,7 @@ nsr:
109 return -1; 109 return -1;
110 110
111 dbg("vsd: %c%c%c%c%c", 111 dbg("vsd: %c%c%c%c%c",
112 vsd->id[0], vsd->id[1], vsd->id[2], vsd->id[3], vsd->id[4]); 112 vsd->id[0], vsd->id[1], vsd->id[2], vsd->id[3], vsd->id[4]);
113 113
114 if (vsd->id[0] == '\0') 114 if (vsd->id[0] == '\0')
115 return -1; 115 return -1;
diff --git a/util-linux/volume_id/unused_msdos.c b/util-linux/volume_id/unused_msdos.c
index 65fb88501..2e8cb196a 100644
--- a/util-linux/volume_id/unused_msdos.c
+++ b/util-linux/volume_id/unused_msdos.c
@@ -109,7 +109,7 @@ int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t of
109 extended = off + poff; 109 extended = off + poff;
110 } else { 110 } else {
111 dbg("found 0x%x data partition at 0x%llx, len 0x%llx", 111 dbg("found 0x%x data partition at 0x%llx, len 0x%llx",
112 part[i].sys_ind, (unsigned long long) poff, (unsigned long long) plen); 112 part[i].sys_ind, (unsigned long long) poff, (unsigned long long) plen);
113 113
114// if (is_raid(part[i].sys_ind)) 114// if (is_raid(part[i].sys_ind))
115// volume_id_set_usage_part(p, VOLUME_ID_RAID); 115// volume_id_set_usage_part(p, VOLUME_ID_RAID);
diff --git a/util-linux/volume_id/unused_silicon_raid.c b/util-linux/volume_id/unused_silicon_raid.c
index d1c439ecf..878b88197 100644
--- a/util-linux/volume_id/unused_silicon_raid.c
+++ b/util-linux/volume_id/unused_silicon_raid.c
@@ -62,7 +62,7 @@ int FAST_FUNC volume_id_probe_silicon_medley_raid(struct volume_id *id, uint64_t
62 62
63// volume_id_set_usage(id, VOLUME_ID_RAID); 63// volume_id_set_usage(id, VOLUME_ID_RAID);
64// snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u", 64// snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u",
65// le16_to_cpu(sil->major_ver), le16_to_cpu(sil->minor_ver)); 65// le16_to_cpu(sil->major_ver), le16_to_cpu(sil->minor_ver));
66// id->type = "silicon_medley_raid_member"; 66// id->type = "silicon_medley_raid_member";
67 67
68 return 0; 68 return 0;