2
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
2
* Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4
4
* This program is free software; you can redistribute it and/or modify it
5
5
* under the terms of version 2 of the GNU General Public License as
6
6
* published by the Free Software Foundation.
8
8
* This program is distributed in the hope that it would be useful, but
9
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
12
* Further, this software is distributed without any warranty that it is
13
13
* free of the rightful claim of any third person regarding infringement
14
14
* or the like. Any license provided herein, whether implied or
15
15
* otherwise, applies only to this software file. Patent licenses, if
16
16
* any, provided herein do not apply to combinations of this program with
17
17
* other software, or any other product whatsoever.
19
19
* You should have received a copy of the GNU General Public License along
20
20
* with this program; if not, write the Free Software Foundation, Inc., 59
21
21
* Temple Place - Suite 330, Boston MA 02111-1307, USA.
23
23
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24
24
* Mountain View, CA 94043, or:
28
* For further information regarding this notice, see:
28
* For further information regarding this notice, see:
30
30
* http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
85
85
* no_modify mode, it'll never get flushed out
88
do_warn("bogus quota flags 0x%x set in superblock",
88
do_warn(_("bogus quota flags 0x%x set in superblock"),
89
89
sb->sb_qflags & ~(XFS_UQUOTA_ACCT|
91
91
XFS_UQUOTA_CHKD|XFS_GQUOTA_ACCT|
97
97
XFS_GQUOTA_ENFD|XFS_GQUOTA_CHKD);
100
do_warn(", bogus flags will be cleared\n");
100
do_warn(_(", bogus flags will be cleared\n"));
102
do_warn(", bogus flags would be cleared\n");
102
do_warn(_(", bogus flags would be cleared\n"));
105
105
sb->sb_qflags = 0;
164
164
if (!fs_shared_allowed) {
165
165
issue_warning = 1;
166
do_warn("This filesystem is marked shared.\n");
166
do_warn(_("This filesystem is marked shared.\n"));
170
170
if (issue_warning) {
172
"This filesystem uses 6.5 feature(s) not yet supported in this release.\n\
173
Please run a 6.5 version of xfs_repair.\n");
172
_("This filesystem uses feature(s) not yet supported in this release.\n"
173
"Please run a more recent version of xfs_repair.\n"));
177
177
if (!XFS_SB_GOOD_VERSION(sb)) {
179
"WARNING: unknown superblock version %d\n", XFS_SB_VERSION_NUM(sb));
181
"This filesystem contains features not understood by this program.\n");
178
do_warn(_("WARNING: unknown superblock version %d\n"),
179
XFS_SB_VERSION_NUM(sb));
181
_("This filesystem contains features not understood by this program.\n"));
185
185
if (XFS_SB_VERSION_NUM(sb) == XFS_SB_VERSION_4) {
186
186
if (!fs_sb_feature_bits_allowed) {
188
"WARNING: you have disallowed superblock feature bits disallowed\n");
190
"\tbut this superblock has feature bits. The superblock\n");
192
187
if (!no_modify) {
194
"\twill be downgraded. This may cause loss of filesystem meta-data\n");
189
_("WARNING: you have disallowed superblock-feature-bits-allowed\n"
190
"\tbut this superblock has feature bits. The superblock\n"
191
"\twill be downgraded. This may cause loss of filesystem meta-data\n"));
197
"\twould be downgraded. This might cause loss of filesystem\n");
194
_("WARNING: you have disallowed superblock-feature-bits-allowed\n"
195
"\tbut this superblock has feature bits. The superblock\n"
196
"\twould be downgraded. This might cause loss of filesystem\n"
202
200
fs_sb_feature_bits = 1;
206
204
if (XFS_SB_VERSION_HASATTR(sb)) {
207
205
if (!fs_attributes_allowed) {
209
"WARNING: you have disallowed attributes but this filesystem\n");
210
206
if (!no_modify) {
212
"\thas attributes. The filesystem will be downgraded and\n");
214
"\tall attributes will be removed.\n");
208
_("WARNING: you have disallowed attributes but this filesystem\n"
209
"\thas attributes. The filesystem will be downgraded and\n"
210
"\tall attributes will be removed.\n"));
217
"\thas attributes. The filesystem would be downgraded and\n");
219
"\tall attributes would be removed.\n");
213
_("WARNING: you have disallowed attributes but this filesystem\n"
214
"\thas attributes. The filesystem would be downgraded and\n"
215
"\tall attributes would be removed.\n"));
222
218
fs_attributes = 1;
226
222
if (XFS_SB_VERSION_HASNLINK(sb)) {
227
223
if (!fs_inode_nlink_allowed) {
229
"WARNING: you have disallowed version 2 inodes but this filesystem\n");
230
224
if (!no_modify) {
232
"\thas version 2 inodes. The filesystem will be downgraded and\n");
234
"\tall version 2 inodes will be converted to version 1 inodes.\n");
236
"\tThis may cause some hard links to files to be destroyed\n");
226
_("WARNING: you have disallowed version 2 inodes but this filesystem\n"
227
"\thas version 2 inodes. The filesystem will be downgraded and\n"
228
"\tall version 2 inodes will be converted to version 1 inodes.\n"
229
"\tThis may cause some hard links to files to be destroyed\n"));
239
"\thas version 2 inodes. The filesystem would be downgraded and\n");
241
"\tall version 2 inodes would be converted to version 1 inodes.\n");
243
"\tThis might cause some hard links to files to be destroyed\n");
232
_("WARNING: you have disallowed version 2 inodes but this filesystem\n"
233
"\thas version 2 inodes. The filesystem would be downgraded and\n"
234
"\tall version 2 inodes would be converted to version 1 inodes.\n"
235
"\tThis might cause some hard links to files to be destroyed\n"));
246
238
fs_inode_nlink = 1;
250
242
if (XFS_SB_VERSION_HASQUOTA(sb)) {
251
243
if (!fs_quotas_allowed) {
253
"WARNING: you have disallowed quotas but this filesystem\n");
254
244
if (!no_modify) {
256
"\thas quotas. The filesystem will be downgraded and\n");
258
"\tall quota information will be removed.\n");
246
_("WARNING: you have disallowed quotas but this filesystem\n"
247
"\thas quotas. The filesystem will be downgraded and\n"
248
"\tall quota information will be removed.\n"));
261
"\thas quotas. The filesystem would be downgraded and\n");
263
"\tall quota information would be removed.\n");
251
_("WARNING: you have disallowed quotas but this filesystem\n"
252
"\thas quotas. The filesystem would be downgraded and\n"
253
"\tall quota information would be removed.\n"));
280
270
fs_aligned_inodes = 1;
281
271
fs_ino_alignment = sb->sb_inoalignmt;
284
"WARNING: you have disallowed aligned inodes but this filesystem\n");
285
273
if (!no_modify) {
287
"\thas aligned inodes. The filesystem will be downgraded.\n");
289
"\tThis will permanently degrade the performance of this filesystem.\n");
275
_("WARNING: you have disallowed aligned inodes but this filesystem\n"
276
"\thas aligned inodes. The filesystem will be downgraded.\n"
277
"\tThis will permanently degrade the performance of this filesystem.\n"));
292
"\thas aligned inodes. The filesystem would be downgraded.\n");
294
"\tThis would permanently degrade the performance of this filesystem.\n");
280
_("WARNING: you have disallowed aligned inodes but this filesystem\n"
281
"\thas aligned inodes. The filesystem would be downgraded.\n"
282
"\tThis would permanently degrade the performance of this filesystem.\n"));