" -a -- prints the attribute fork map instead of the data fork.\n"
" -c -- prints the copy-on-write fork map instead of the data fork.\n"
" This works only if the kernel was compiled in debug mode.\n"
-" -d -- suppresses a DMAPI read event, offline portions shown as holes.\n"
" -e -- print delayed allocation extents.\n"
" -l -- also displays the length of each extent in 512-byte blocks.\n"
" -n -- query n extents.\n"
int c;
int egcnt;
- while ((c = getopt(argc, argv, "acdeln:pv")) != EOF) {
+ while ((c = getopt(argc, argv, "aceln:pv")) != EOF) {
switch (c) {
case 'a': /* Attribute fork. */
bmv_iflags |= BMV_IF_ATTRFORK;
case 'n': /* number of extents specified */
nflag = atoi(optarg);
break;
- case 'd':
- /* do not recall possibly offline DMAPI files */
- bmv_iflags |= BMV_IF_NO_DMAPI_READ;
- break;
case 'p':
/* report unwritten preallocated blocks */
pflag = 1;
}
}
if (aflag || cflag)
- bmv_iflags &= ~(BMV_IF_PREALLOC|BMV_IF_NO_DMAPI_READ);
+ bmv_iflags &= ~BMV_IF_PREALLOC;
if (vflag) {
c = -xfrog_geometry(file->fd, &fsgeo);
* EINVAL, check the length with fstat() and return "no extents"
* if the length == 0.
*
- * Why not do the xfsctl(FS_IOC_FSGETXATTR[A]) first? Two reasons:
- * (1) The extent count may be wrong for a file with delayed
- * allocation blocks. The XFS_IOC_GETBMAPX forces the real
- * allocation and fixes up the extent count.
- * (2) For XFS_IOC_GETBMAP[X] on a DMAPI file that has been moved
- * offline by a DMAPI application (e.g., DMF) the
- * FS_IOC_FSGETXATTR only reflects the extents actually online.
- * Doing XFS_IOC_GETBMAPX call first forces that data blocks online
- * and then everything proceeds normally (see PV #545725).
- *
- * If you don't want this behavior on a DMAPI offline file,
- * try the "-d" option which sets the BMV_IF_NO_DMAPI_READ
- * iflag for XFS_IOC_GETBMAPX.
+ * Why not do the xfsctl(FS_IOC_FSGETXATTR[A]) first?
+ * The extent count may be wrong for a file with delayed
+ * allocation blocks. The XFS_IOC_GETBMAPX forces the real
+ * allocation and fixes up the extent count.
*/
do { /* loop a miximum of two times */
bmap_cmd.argmin = 0;
bmap_cmd.argmax = -1;
bmap_cmd.flags = CMD_NOMAP_OK;
- bmap_cmd.args = _("[-adlpv] [-n nx]");
+ bmap_cmd.args = _("[-acelpv] [-n nx]");
bmap_cmd.oneline = _("print block mapping for an XFS file");
bmap_cmd.help = bmap_help;
If this option is specified, information about the file's
attribute fork is printed instead of the default data fork.
.TP
-.B \-d
-If portions of the file have been migrated offline by
-a DMAPI application, a DMAPI read event will be generated to
-bring those portions back online before the disk block map is
-printed. However if the
-.B \-d
-option is used, no DMAPI read event will be generated for a
-DMAPI file and offline portions will be reported as holes.
-.TP
.B \-e
If this option is used,
.B xfs_bmap
" Holes are marked by replacing the startblock..endblock with 'hole'.\n"
" All the file offsets and disk blocks are in units of 512-byte blocks.\n"
" -a -- prints the attribute fork map instead of the data fork.\n"
-" -d -- suppresses a DMAPI read event, offline portions shown as holes.\n"
" -l -- also displays the length of each extent in 512-byte blocks.\n"
" Note: the bmap for non-regular files can be obtained provided the file\n"
" was opened appropriately (in particular, must be opened read-only).\n"
" Alle Datei-Offsets und Plattenblöcke sind Einheiten aus 512-Byte-Blöcken.\n"
" -a -- gibt die Attributs-Verzweigungs-Karte statt der\n"
" Daten-Verzweigung aus.\n"
-" -d -- unterdrückt ein DMAPI-Lese-Ereignis, Offline-Teile werden als Löcher\n"
-" betrachtet.\n"
" -l -- zeigt außerdem die Länge von jedem Bereich in 512-Byte Blöcken.\n"
" Anmerkung: Das »bmap« für irreguläre Dateien kann bereitgestellt werden,\n"
" statt der Datei die passend geöffnet wurde (im Einzelnen darf sie\n"
" -a -- prints the attribute fork map instead of the data fork.\n"
" -c -- prints the copy-on-write fork map instead of the data fork.\n"
" This works only if the kernel was compiled in debug mode.\n"
-" -d -- suppresses a DMAPI read event, offline portions shown as holes.\n"
" -e -- print delayed allocation extents.\n"
" -l -- also displays the length of each extent in 512-byte blocks.\n"
" -n -- query n extents.\n"
" Wszystkie offsety w plikach i bloki dysku są w jednostkach 512-bajtowych.\n"
" -a - wypisanie mapy gałęzi atrybutów zamiast gałęzi danych.\n"
" -c - wypisanie mapy gałęzi CoW zamiast gałęzi danych.\n"
-" -d - pominięcie zdarzenia odczytu DMAPI, pokazanie części offline jako "
-"dziur.\n"
" -e - wypisanie ekstentów opóźnionego przydzielania.\n"
" -l - wyświetlenie także długości każdego ekstentu w 512-bajtowych blokach.\n"
" -n - odpytanie n ekstentów.\n"