232
236
/* Also compare with the list in "man 2 statfs" using the
233
237
fs-magic-compare make target. */
235
/* IMPORTANT NOTE: Each of the following `case S_MAGIC_...:'
239
/* IMPORTANT NOTE: Each of the following 'case S_MAGIC_...:'
236
240
statements must be followed by a hexadecimal constant in
237
241
a comment. The S_MAGIC_... name and constant are automatically
238
242
combined to produce the #define directives in fs.h. */
240
case S_MAGIC_ADFS: /* 0xADF5 */
244
case S_MAGIC_ADFS: /* 0xADF5 local */
242
case S_MAGIC_AFFS: /* 0xADFF */
246
case S_MAGIC_AFFS: /* 0xADFF local */
244
case S_MAGIC_AFS: /* 0x5346414F */
248
case S_MAGIC_AFS: /* 0x5346414F remote */
246
case S_MAGIC_ANON_INODE_FS: /* 0x09041934 */
250
case S_MAGIC_ANON_INODE_FS: /* 0x09041934 local */
247
251
return "anon-inode FS";
248
case S_MAGIC_AUTOFS: /* 0x0187 */
252
case S_MAGIC_AUFS: /* 0x61756673 remote */
253
/* FIXME: change syntax or add an optional attribute like "inotify:no".
254
The above is labeled as "remote" so that tail always uses polling,
255
but this isn't really a remote file system type. */
257
case S_MAGIC_AUTOFS: /* 0x0187 local */
250
case S_MAGIC_BEFS: /* 0x42465331 */
259
case S_MAGIC_BEFS: /* 0x42465331 local */
252
case S_MAGIC_BFS: /* 0x1BADFACE */
261
case S_MAGIC_BDEVFS: /* 0x62646576 local */
263
case S_MAGIC_BFS: /* 0x1BADFACE local */
254
case S_MAGIC_BINFMT_MISC: /* 0x42494E4D */
265
case S_MAGIC_BINFMTFS: /* 0x42494E4D local */
255
266
return "binfmt_misc";
256
case S_MAGIC_BTRFS: /* 0x9123683E */
267
case S_MAGIC_BTRFS: /* 0x9123683E local */
258
case S_MAGIC_CGROUP: /* 0x0027E0EB */
269
case S_MAGIC_CGROUP: /* 0x0027E0EB local */
259
270
return "cgroupfs";
260
case S_MAGIC_CIFS: /* 0xFF534D42 */
271
case S_MAGIC_CIFS: /* 0xFF534D42 remote */
262
case S_MAGIC_CODA: /* 0x73757245 */
273
case S_MAGIC_CODA: /* 0x73757245 remote */
264
case S_MAGIC_COH: /* 0x012FF7B7 */
275
case S_MAGIC_COH: /* 0x012FF7B7 local */
266
case S_MAGIC_CRAMFS: /* 0x28CD3D45 */
277
case S_MAGIC_CRAMFS: /* 0x28CD3D45 local */
268
case S_MAGIC_CRAMFS_WEND: /* 0x453DCD28 */
279
case S_MAGIC_CRAMFS_WEND: /* 0x453DCD28 local */
269
280
return "cramfs-wend";
270
case S_MAGIC_DEBUGFS: /* 0x64626720 */
281
case S_MAGIC_DEBUGFS: /* 0x64626720 local */
271
282
return "debugfs";
272
case S_MAGIC_DEVFS: /* 0x1373 */
283
case S_MAGIC_DEVFS: /* 0x1373 local */
274
case S_MAGIC_DEVPTS: /* 0x1CD1 */
285
case S_MAGIC_DEVPTS: /* 0x1CD1 local */
276
case S_MAGIC_ECRYPTFS: /* 0xF15F */
287
case S_MAGIC_ECRYPTFS: /* 0xF15F local */
277
288
return "ecryptfs";
278
case S_MAGIC_EFS: /* 0x00414A53 */
289
case S_MAGIC_EFS: /* 0x00414A53 local */
280
case S_MAGIC_EXT: /* 0x137D */
291
case S_MAGIC_EXT: /* 0x137D local */
282
case S_MAGIC_EXT2: /* 0xEF53 */
293
case S_MAGIC_EXT2: /* 0xEF53 local */
283
294
return "ext2/ext3";
284
case S_MAGIC_EXT2_OLD: /* 0xEF51 */
295
case S_MAGIC_EXT2_OLD: /* 0xEF51 local */
286
case S_MAGIC_FAT: /* 0x4006 */
297
case S_MAGIC_FAT: /* 0x4006 local */
288
case S_MAGIC_FUSEBLK: /* 0x65735546 */
299
case S_MAGIC_FHGFS: /* 0x19830326 remote */
301
case S_MAGIC_FUSEBLK: /* 0x65735546 remote */
289
302
return "fuseblk";
290
case S_MAGIC_FUSECTL: /* 0x65735543 */
303
case S_MAGIC_FUSECTL: /* 0x65735543 remote */
291
304
return "fusectl";
292
case S_MAGIC_FUTEXFS: /* 0x0BAD1DEA */
305
case S_MAGIC_FUTEXFS: /* 0x0BAD1DEA local */
293
306
return "futexfs";
294
case S_MAGIC_GFS: /* 0x1161970 */
307
case S_MAGIC_GFS: /* 0x1161970 remote */
295
308
return "gfs/gfs2";
296
case S_MAGIC_GPFS: /* 0x47504653 */
309
case S_MAGIC_GPFS: /* 0x47504653 remote */
298
case S_MAGIC_HFS: /* 0x4244 */
311
case S_MAGIC_HFS: /* 0x4244 local */
300
case S_MAGIC_HPFS: /* 0xF995E849 */
313
case S_MAGIC_HPFS: /* 0xF995E849 local */
302
case S_MAGIC_HUGETLBFS: /* 0x958458F6 */
315
case S_MAGIC_HUGETLBFS: /* 0x958458F6 local */
303
316
return "hugetlbfs";
304
case S_MAGIC_INOTIFYFS: /* 0x2BAD1DEA */
317
case S_MAGIC_MTD_INODE_FS: /* 0x11307854 local */
319
case S_MAGIC_INOTIFYFS: /* 0x2BAD1DEA local */
305
320
return "inotifyfs";
306
case S_MAGIC_ISOFS: /* 0x9660 */
308
case S_MAGIC_ISOFS_R_WIN: /* 0x4004 */
310
case S_MAGIC_ISOFS_WIN: /* 0x4000 */
312
case S_MAGIC_JFFS: /* 0x07C0 */
321
case S_MAGIC_ISOFS: /* 0x9660 local */
323
case S_MAGIC_ISOFS_R_WIN: /* 0x4004 local */
325
case S_MAGIC_ISOFS_WIN: /* 0x4000 local */
327
case S_MAGIC_JFFS: /* 0x07C0 local */
314
case S_MAGIC_JFFS2: /* 0x72B6 */
329
case S_MAGIC_JFFS2: /* 0x72B6 local */
316
case S_MAGIC_JFS: /* 0x3153464A */
331
case S_MAGIC_JFS: /* 0x3153464A local */
318
case S_MAGIC_KAFS: /* 0x6B414653 */
333
case S_MAGIC_KAFS: /* 0x6B414653 remote */
320
case S_MAGIC_LUSTRE: /* 0x0BD00BD0 */
335
case S_MAGIC_LUSTRE: /* 0x0BD00BD0 remote */
322
case S_MAGIC_MINIX: /* 0x137F */
337
case S_MAGIC_MINIX: /* 0x137F local */
324
case S_MAGIC_MINIX_30: /* 0x138F */
339
case S_MAGIC_MINIX_30: /* 0x138F local */
325
340
return "minix (30 char.)";
326
case S_MAGIC_MINIX_V2: /* 0x2468 */
341
case S_MAGIC_MINIX_V2: /* 0x2468 local */
327
342
return "minix v2";
328
case S_MAGIC_MINIX_V2_30: /* 0x2478 */
343
case S_MAGIC_MINIX_V2_30: /* 0x2478 local */
329
344
return "minix v2 (30 char.)";
330
case S_MAGIC_MINIX_V3: /* 0x4D5A */
345
case S_MAGIC_MINIX_V3: /* 0x4D5A local */
332
case S_MAGIC_MQUEUE: /* 0x19800202 */
347
case S_MAGIC_MQUEUE: /* 0x19800202 local */
334
case S_MAGIC_MSDOS: /* 0x4D44 */
349
case S_MAGIC_MSDOS: /* 0x4D44 local */
336
case S_MAGIC_NCP: /* 0x564C */
351
case S_MAGIC_NCP: /* 0x564C remote */
338
case S_MAGIC_NFS: /* 0x6969 */
353
case S_MAGIC_NFS: /* 0x6969 remote */
340
case S_MAGIC_NFSD: /* 0x6E667364 */
355
case S_MAGIC_NFSD: /* 0x6E667364 remote */
342
case S_MAGIC_NILFS: /* 0x3434 */
357
case S_MAGIC_NILFS: /* 0x3434 local */
344
case S_MAGIC_NTFS: /* 0x5346544E */
359
case S_MAGIC_NTFS: /* 0x5346544E local */
346
case S_MAGIC_OPENPROM: /* 0x9FA1 */
361
case S_MAGIC_OPENPROM: /* 0x9FA1 local */
347
362
return "openprom";
348
case S_MAGIC_OCFS2: /* 0x7461636f */
363
case S_MAGIC_OCFS2: /* 0x7461636f remote */
350
case S_MAGIC_PROC: /* 0x9FA0 */
365
case S_MAGIC_PANFS: /* 0xAAD7AAEA remote */
367
case S_MAGIC_PIPEFS: /* 0x50495045 remote */
368
/* FIXME: change syntax or add an optional attribute like "inotify:no".
369
The above is labeled as "remote" so that tail always uses polling,
370
but this isn't really a remote file system type. */
372
case S_MAGIC_PROC: /* 0x9FA0 local */
352
case S_MAGIC_PSTOREFS: /* 0x6165676C */
374
case S_MAGIC_PSTOREFS: /* 0x6165676C local */
353
375
return "pstorefs";
354
case S_MAGIC_QNX4: /* 0x002F */
376
case S_MAGIC_QNX4: /* 0x002F local */
356
case S_MAGIC_RAMFS: /* 0x858458F6 */
378
case S_MAGIC_QNX6: /* 0x68191122 local */
380
case S_MAGIC_RAMFS: /* 0x858458F6 local */
358
case S_MAGIC_REISERFS: /* 0x52654973 */
382
case S_MAGIC_REISERFS: /* 0x52654973 local */
359
383
return "reiserfs";
360
case S_MAGIC_ROMFS: /* 0x7275 */
384
case S_MAGIC_ROMFS: /* 0x7275 local */
362
case S_MAGIC_RPC_PIPEFS: /* 0x67596969 */
386
case S_MAGIC_RPC_PIPEFS: /* 0x67596969 local */
363
387
return "rpc_pipefs";
364
case S_MAGIC_SECURITYFS: /* 0x73636673 */
388
case S_MAGIC_SECURITYFS: /* 0x73636673 local */
365
389
return "securityfs";
366
case S_MAGIC_SELINUX: /* 0xF97CFF8C */
390
case S_MAGIC_SELINUX: /* 0xF97CFF8C local */
367
391
return "selinux";
368
case S_MAGIC_SMB: /* 0x517B */
392
case S_MAGIC_SMB: /* 0x517B remote */
370
case S_MAGIC_SOCKFS: /* 0x534F434B */
394
case S_MAGIC_SOCKFS: /* 0x534F434B local */
372
case S_MAGIC_SQUASHFS: /* 0x73717368 */
396
case S_MAGIC_SQUASHFS: /* 0x73717368 local */
373
397
return "squashfs";
374
case S_MAGIC_SYSFS: /* 0x62656572 */
398
case S_MAGIC_SYSFS: /* 0x62656572 local */
376
case S_MAGIC_SYSV2: /* 0x012FF7B6 */
400
case S_MAGIC_SYSV2: /* 0x012FF7B6 local */
378
case S_MAGIC_SYSV4: /* 0x012FF7B5 */
402
case S_MAGIC_SYSV4: /* 0x012FF7B5 local */
380
case S_MAGIC_TMPFS: /* 0x01021994 */
404
case S_MAGIC_TMPFS: /* 0x01021994 local */
382
case S_MAGIC_UDF: /* 0x15013346 */
406
case S_MAGIC_UDF: /* 0x15013346 local */
384
case S_MAGIC_UFS: /* 0x00011954 */
386
case S_MAGIC_UFS_BYTESWAPPED: /* 0x54190100 */
388
case S_MAGIC_USBDEVFS: /* 0x9FA2 */
408
case S_MAGIC_UFS: /* 0x00011954 local */
410
case S_MAGIC_UFS_BYTESWAPPED: /* 0x54190100 local */
412
case S_MAGIC_USBDEVFS: /* 0x9FA2 local */
389
413
return "usbdevfs";
390
case S_MAGIC_V9FS: /* 0x01021997 */
414
case S_MAGIC_V9FS: /* 0x01021997 local */
392
case S_MAGIC_VXFS: /* 0xA501FCF5 */
416
case S_MAGIC_VMHGFS: /* 0xBACBACBC remote */
418
case S_MAGIC_VXFS: /* 0xA501FCF5 local */
394
case S_MAGIC_XENFS: /* 0xABBA1974 */
420
case S_MAGIC_VZFS: /* 0x565A4653 local */
422
case S_MAGIC_XENFS: /* 0xABBA1974 local */
396
case S_MAGIC_XENIX: /* 0x012FF7B4 */
424
case S_MAGIC_XENIX: /* 0x012FF7B4 local */
398
case S_MAGIC_XFS: /* 0x58465342 */
426
case S_MAGIC_XFS: /* 0x58465342 local */
400
case S_MAGIC_XIAFS: /* 0x012FD16D */
428
case S_MAGIC_XIAFS: /* 0x012FD16D local */
430
case S_MAGIC_ZFS: /* 0x2FC12FC1 local */
1341
1366
The valid format sequences for files (without --file-system):\n\
1343
%a Access rights in octal\n\
1344
%A Access rights in human readable form\n\
1345
%b Number of blocks allocated (see %B)\n\
1346
%B The size in bytes of each block reported by %b\n\
1368
%a access rights in octal\n\
1369
%A access rights in human readable form\n\
1370
%b number of blocks allocated (see %B)\n\
1371
%B the size in bytes of each block reported by %b\n\
1347
1372
%C SELinux security context string\n\
1350
%d Device number in decimal\n\
1351
%D Device number in hex\n\
1352
%f Raw mode in hex\n\
1354
%g Group ID of owner\n\
1355
%G Group name of owner\n\
1358
%h Number of hard links\n\
1362
%N Quoted file name with dereference if symbolic link\n\
1363
%o I/O block size\n\
1364
%s Total size, in bytes\n\
1365
%t Major device type in hex\n\
1366
%T Minor device type in hex\n\
1369
%u User ID of owner\n\
1370
%U User name of owner\n\
1371
%w Time of file birth, human-readable; - if unknown\n\
1372
%W Time of file birth, seconds since Epoch; 0 if unknown\n\
1373
%x Time of last access, human-readable\n\
1374
%X Time of last access, seconds since Epoch\n\
1375
%y Time of last modification, human-readable\n\
1376
%Y Time of last modification, seconds since Epoch\n\
1377
%z Time of last change, human-readable\n\
1378
%Z Time of last change, seconds since Epoch\n\
1375
%d device number in decimal\n\
1376
%D device number in hex\n\
1377
%f raw mode in hex\n\
1379
%g group ID of owner\n\
1380
%G group name of owner\n\
1383
%h number of hard links\n\
1387
%N quoted file name with dereference if symbolic link\n\
1388
%o optimal I/O transfer size hint\n\
1389
%s total size, in bytes\n\
1390
%t major device type in hex\n\
1391
%T minor device type in hex\n\
1394
%u user ID of owner\n\
1395
%U user name of owner\n\
1396
%w time of file birth, human-readable; - if unknown\n\
1397
%W time of file birth, seconds since Epoch; 0 if unknown\n\
1398
%x time of last access, human-readable\n\
1399
%X time of last access, seconds since Epoch\n\
1400
%y time of last modification, human-readable\n\
1401
%Y time of last modification, seconds since Epoch\n\
1402
%z time of last change, human-readable\n\
1403
%Z time of last change, seconds since Epoch\n\
1383
1408
Valid format sequences for file systems:\n\
1385
%a Free blocks available to non-superuser\n\
1386
%b Total data blocks in file system\n\
1387
%c Total file nodes in file system\n\
1388
%d Free file nodes in file system\n\
1389
%f Free blocks in file system\n\
1410
%a free blocks available to non-superuser\n\
1411
%b total data blocks in file system\n\
1412
%c total file nodes in file system\n\
1413
%d free file nodes in file system\n\
1414
%f free blocks in file system\n\
1392
%i File System ID in hex\n\
1393
%l Maximum length of filenames\n\
1395
%s Block size (for faster transfers)\n\
1396
%S Fundamental block size (for block counts)\n\
1398
%T Type in human readable form\n\
1417
%i file system ID in hex\n\
1418
%l maximum length of filenames\n\
1420
%s block size (for faster transfers)\n\
1421
%S fundamental block size (for block counts)\n\
1422
%t file system type in hex\n\
1423
%T file system type in human readable form\n\
1400
1425
printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
1401
1426
emit_ancillary_info ();