1 diff --git a/doc/xfsdump.html b/doc/xfsdump.html
2 index d4d157f..2c9324b 100644
5 @@ -1092,7 +1092,6 @@ the size of the hash table.
6 bool_t p_ownerpr - whether to restore directory owner/group attributes
7 bool_t p_fullpr - whether restoring a full level 0 non-resumed dump
8 bool_t p_ignoreorphpr - set if positive subtree or interactive
9 - bool_t p_restoredmpr - restore DMI event settings
12 The hash table maps the inode number to the tree node. It is a
13 diff --git a/po/de.po b/po/de.po
14 index 62face8..bdf47d1 100644
17 @@ -3972,11 +3972,6 @@ msgstr ""
18 msgid "no additional media objects needed\n"
19 msgstr "keine zusätzlichen Mediendateien benötigt\n"
21 -#: .././restore/content.c:9547
23 -msgid "fssetdm_by_handle of %s failed %s\n"
24 -msgstr "fssetdm_by_handle von %s fehlgeschlagen %s\n"
26 #: .././restore/content.c:9566
28 msgid "%s quota information written to '%s'\n"
29 diff --git a/po/pl.po b/po/pl.po
30 index 3cba8d6..ba25420 100644
33 @@ -3455,11 +3455,6 @@ msgstr "nie są potrzebne dodatkowe obiekty nośnika\n"
34 msgid "path_to_handle of %s failed:%s\n"
35 msgstr "path_to_handle na %s nie powiodło się: %s\n"
37 -#: .././restore/content.c:9723
39 -msgid "fssetdm_by_handle of %s failed %s\n"
40 -msgstr "fssetdm_by_handle na %s nie powiodło się: %s\n"
42 #: .././restore/content.c:9742
44 msgid "%s quota information written to '%s'\n"
45 diff --git a/restore/content.c b/restore/content.c
46 index 6b22965..e9b0a07 100644
47 --- a/restore/content.c
48 +++ b/restore/content.c
49 @@ -477,9 +477,6 @@ struct pers {
50 /* how many pages following the header page are reserved
51 * for the subtree descriptors
54 - /* restore DMAPI event settings
56 bool_t restoreextattrpr;
57 /* restore extended attributes
59 @@ -858,7 +855,6 @@ static void partial_reg(ix_t d_index, xfs_ino_t ino, off64_t fsize,
60 off64_t offset, off64_t sz);
61 static bool_t partial_check (xfs_ino_t ino, off64_t fsize);
62 static bool_t partial_check2 (partial_rest_t *isptr, off64_t fsize);
63 -static int do_fssetdm_by_handle(char *path, fsdmidata_t *fdmp);
64 static int quotafilecheck(char *type, char *dstdir, char *quotafile);
66 /* definition of locally defined global variables ****************************/
67 @@ -894,7 +890,6 @@ content_init(int argc, char *argv[], size64_t vmsz)
68 bool_t changepr;/* cmd line overwrite inhibit specification */
69 bool_t interpr; /* cmd line interactive mode requested */
70 bool_t ownerpr; /* cmd line chown/chmod requested */
71 - bool_t restoredmpr; /* cmd line restore dm api attrs specification */
72 bool_t restoreextattrpr; /* cmd line restore extended attr spec */
73 bool_t sesscpltpr; /* force completion of prev interrupted session */
74 ix_t stcnt; /* cmd line number of subtrees requested */
75 @@ -956,7 +951,6 @@ content_init(int argc, char *argv[], size64_t vmsz)
77 changepr = BOOL_FALSE;
79 - restoredmpr = BOOL_FALSE;
80 restoreextattrpr = BOOL_TRUE;
81 sesscpltpr = BOOL_FALSE;
83 @@ -1162,8 +1156,11 @@ content_init(int argc, char *argv[], size64_t vmsz)
84 tranp->t_noinvupdatepr = BOOL_TRUE;
87 - restoredmpr = BOOL_TRUE;
89 + mlog(MLOG_NORMAL | MLOG_ERROR, _(
90 + "-%c option no longer supported\n"),
94 case GETOPT_ALERTPROG:
95 if (!optarg || optarg[0] == '-') {
96 mlog(MLOG_NORMAL | MLOG_ERROR, _(
97 @@ -1574,12 +1571,6 @@ content_init(int argc, char *argv[], size64_t vmsz)
100 if (persp->a.valpr) {
101 - if (restoredmpr && persp->a.restoredmpr != restoredmpr) {
102 - mlog(MLOG_NORMAL | MLOG_ERROR, _(
103 - "-%c cannot reset flag from previous restore\n"),
107 if (!restoreextattrpr &&
108 persp->a.restoreextattrpr != restoreextattrpr) {
109 mlog(MLOG_NORMAL | MLOG_ERROR, _(
110 @@ -1734,7 +1725,6 @@ content_init(int argc, char *argv[], size64_t vmsz)
111 persp->a.newerpr = newerpr;
112 persp->a.newertime = newertime;
114 - persp->a.restoredmpr = restoredmpr;
115 if (!persp->a.dstdirisxfspr) {
116 restoreextattrpr = BOOL_FALSE;
118 @@ -2365,7 +2355,6 @@ content_stream_restore(ix_t thrdix)
119 scrhdrp->cih_inomap_nondircnt,
122 - persp->a.restoredmpr,
123 persp->a.dstdirisxfspr,
125 tranp->t_truncategenpr);
126 @@ -7549,12 +7538,6 @@ restore_reg(drive_t *drivep,
130 - if (persp->a.dstdirisxfspr && persp->a.restoredmpr) {
131 - HsmBeginRestoreFile(bstatp,
133 - &strctxp->sc_hsmflags);
139 @@ -7726,26 +7709,6 @@ restore_complete_reg(stream_context_t *strcxtp)
143 - if (persp->a.dstdirisxfspr && persp->a.restoredmpr) {
144 - fsdmidata_t fssetdm;
146 - /* Set the DMAPI Fields. */
147 - fssetdm.fsd_dmevmask = bstatp->bs_dmevmask;
148 - fssetdm.fsd_padding = 0;
149 - fssetdm.fsd_dmstate = bstatp->bs_dmstate;
151 - rval = ioctl(fd, XFS_IOC_FSSETDM, (void *)&fssetdm);
153 - mlog(MLOG_NORMAL | MLOG_WARNING,
154 - _("attempt to set DMI attributes of %s "
160 - HsmEndRestoreFile(path, fd, &strcxtp->sc_hsmflags);
163 /* set any extended inode flags that couldn't be set
164 * prior to restoring the data.
166 @@ -8064,17 +8027,6 @@ restore_symlink(drive_t *drivep,
171 - if (persp->a.restoredmpr) {
172 - fsdmidata_t fssetdm;
174 - /* Restore DMAPI fields. */
176 - fssetdm.fsd_dmevmask = bstatp->bs_dmevmask;
177 - fssetdm.fsd_padding = 0;
178 - fssetdm.fsd_dmstate = bstatp->bs_dmstate;
179 - rval = do_fssetdm_by_handle(path, &fssetdm);
184 @@ -8777,7 +8729,7 @@ restore_extattr(drive_t *drivep,
186 assert(nread == (int)(recsz - EXTATTRHDR_SZ));
188 - if (!persp->a.restoreextattrpr && !persp->a.restoredmpr) {
189 + if (!persp->a.restoreextattrpr) {
193 @@ -8796,19 +8748,6 @@ restore_extattr(drive_t *drivep,
195 } else if (isfilerestored && path[0] != '\0') {
196 setextattr(path, ahdrp);
198 - if (persp->a.dstdirisxfspr && persp->a.restoredmpr) {
200 - char *attrname = (char *)&ahdrp[1];
201 - if (ahdrp->ah_flags & EXTATTRHDR_FLAGS_ROOT)
203 - else if (ahdrp->ah_flags & EXTATTRHDR_FLAGS_SECURE)
204 - flag = ATTR_SECURE;
206 - HsmRestoreAttribute(flag,
208 - &strctxp->sc_hsmflags);
213 @@ -9709,32 +9648,6 @@ display_needed_objects(purp_t purp,
218 -do_fssetdm_by_handle(
226 - if (path_to_handle(path, &hanp, &hlen)) {
227 - mlog(MLOG_NORMAL | MLOG_WARNING, _(
228 - "path_to_handle of %s failed:%s\n"),
229 - path, strerror(errno));
233 - rc = fssetdm_by_handle(hanp, hlen, fdmp);
234 - free_handle(hanp, hlen);
236 - mlog(MLOG_NORMAL | MLOG_WARNING, _(
237 - "fssetdm_by_handle of %s failed %s\n"),
238 - path, strerror(errno));
244 quotafilecheck(char *type, char *dstdir, char *quotafile)
246 diff --git a/restore/tree.c b/restore/tree.c
247 index 0670318..5429b74 100644
250 @@ -108,9 +108,6 @@ struct treePersStorage {
251 bool_t p_ignoreorphpr;
252 /* set if positive subtree or interactive
254 - bool_t p_restoredmpr;
255 - /* restore DMI event settings
257 bool_t p_truncategenpr;
258 /* truncate inode generation number (for compatibility
259 * with xfsdump format 2 and earlier)
260 @@ -348,7 +345,6 @@ tree_init(char *hkdir,
264 - bool_t restoredmpr,
265 bool_t dstdirisxfspr,
267 bool_t truncategenpr)
268 @@ -508,10 +504,6 @@ tree_init(char *hkdir,
270 persp->p_fullpr = fullpr;
272 - /* record if DMI event settings should be restored
274 - persp->p_restoredmpr = restoredmpr;
276 /* record if truncated generation numbers are required
278 if (dumpformat < GLOBAL_HDR_VERSION_3) {
279 @@ -2550,31 +2542,6 @@ setdirattr(dah_t dah, char *path)
283 - if (tranp->t_dstdirisxfspr && persp->p_restoredmpr) {
284 - fsdmidata_t fssetdm;
286 - fssetdm.fsd_dmevmask = dirattr_get_dmevmask(dah);
287 - fssetdm.fsd_padding = 0; /* not used */
288 - fssetdm.fsd_dmstate = (uint16_t)dirattr_get_dmstate(dah);
290 - /* restore DMAPI event settings etc.
296 - mlog(errno == EINVAL
298 - (MLOG_NITTY + 1) | MLOG_TREE
300 - MLOG_NITTY | MLOG_TREE,
301 - "set DMI attributes"
302 - " of %s failed: %s\n",
308 utimbuf.actime = dirattr_get_atime(dah);
309 utimbuf.modtime = dirattr_get_mtime(dah);
310 rval = utime(path, &utimbuf);
311 diff --git a/restore/tree.h b/restore/tree.h
312 index 4f9ffe8..bf66e3d 100644
315 @@ -31,7 +31,6 @@ extern bool_t tree_init(char *hkdir,
319 - bool_t restoredmpr,
320 bool_t dstdirisxfspr,
322 bool_t truncategenpr);