diff options
Diffstat (limited to 'fs/hfs/super.c')
-rw-r--r-- | fs/hfs/super.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c index c5074aeafcae..1181d116117d 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c | |||
@@ -101,12 +101,12 @@ static int hfs_remount(struct super_block *sb, int *flags, char *data) | |||
101 | return 0; | 101 | return 0; |
102 | if (!(*flags & MS_RDONLY)) { | 102 | if (!(*flags & MS_RDONLY)) { |
103 | if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { | 103 | if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { |
104 | printk("HFS-fs warning: Filesystem was not cleanly unmounted, " | 104 | printk(KERN_WARNING "hfs: filesystem was not cleanly unmounted, " |
105 | "running fsck.hfs is recommended. leaving read-only.\n"); | 105 | "running fsck.hfs is recommended. leaving read-only.\n"); |
106 | sb->s_flags |= MS_RDONLY; | 106 | sb->s_flags |= MS_RDONLY; |
107 | *flags |= MS_RDONLY; | 107 | *flags |= MS_RDONLY; |
108 | } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { | 108 | } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { |
109 | printk("HFS-fs: Filesystem is marked locked, leaving read-only.\n"); | 109 | printk(KERN_WARNING "hfs: filesystem is marked locked, leaving read-only.\n"); |
110 | sb->s_flags |= MS_RDONLY; | 110 | sb->s_flags |= MS_RDONLY; |
111 | *flags |= MS_RDONLY; | 111 | *flags |= MS_RDONLY; |
112 | } | 112 | } |
@@ -229,21 +229,21 @@ static int parse_options(char *options, struct hfs_sb_info *hsb) | |||
229 | switch (token) { | 229 | switch (token) { |
230 | case opt_uid: | 230 | case opt_uid: |
231 | if (match_int(&args[0], &tmp)) { | 231 | if (match_int(&args[0], &tmp)) { |
232 | printk("HFS: uid requires an argument\n"); | 232 | printk(KERN_ERR "hfs: uid requires an argument\n"); |
233 | return 0; | 233 | return 0; |
234 | } | 234 | } |
235 | hsb->s_uid = (uid_t)tmp; | 235 | hsb->s_uid = (uid_t)tmp; |
236 | break; | 236 | break; |
237 | case opt_gid: | 237 | case opt_gid: |
238 | if (match_int(&args[0], &tmp)) { | 238 | if (match_int(&args[0], &tmp)) { |
239 | printk("HFS: gid requires an argument\n"); | 239 | printk(KERN_ERR "hfs: gid requires an argument\n"); |
240 | return 0; | 240 | return 0; |
241 | } | 241 | } |
242 | hsb->s_gid = (gid_t)tmp; | 242 | hsb->s_gid = (gid_t)tmp; |
243 | break; | 243 | break; |
244 | case opt_umask: | 244 | case opt_umask: |
245 | if (match_octal(&args[0], &tmp)) { | 245 | if (match_octal(&args[0], &tmp)) { |
246 | printk("HFS: umask requires a value\n"); | 246 | printk(KERN_ERR "hfs: umask requires a value\n"); |
247 | return 0; | 247 | return 0; |
248 | } | 248 | } |
249 | hsb->s_file_umask = (umode_t)tmp; | 249 | hsb->s_file_umask = (umode_t)tmp; |
@@ -251,39 +251,39 @@ static int parse_options(char *options, struct hfs_sb_info *hsb) | |||
251 | break; | 251 | break; |
252 | case opt_file_umask: | 252 | case opt_file_umask: |
253 | if (match_octal(&args[0], &tmp)) { | 253 | if (match_octal(&args[0], &tmp)) { |
254 | printk("HFS: file_umask requires a value\n"); | 254 | printk(KERN_ERR "hfs: file_umask requires a value\n"); |
255 | return 0; | 255 | return 0; |
256 | } | 256 | } |
257 | hsb->s_file_umask = (umode_t)tmp; | 257 | hsb->s_file_umask = (umode_t)tmp; |
258 | break; | 258 | break; |
259 | case opt_dir_umask: | 259 | case opt_dir_umask: |
260 | if (match_octal(&args[0], &tmp)) { | 260 | if (match_octal(&args[0], &tmp)) { |
261 | printk("HFS: dir_umask requires a value\n"); | 261 | printk(KERN_ERR "hfs: dir_umask requires a value\n"); |
262 | return 0; | 262 | return 0; |
263 | } | 263 | } |
264 | hsb->s_dir_umask = (umode_t)tmp; | 264 | hsb->s_dir_umask = (umode_t)tmp; |
265 | break; | 265 | break; |
266 | case opt_part: | 266 | case opt_part: |
267 | if (match_int(&args[0], &hsb->part)) { | 267 | if (match_int(&args[0], &hsb->part)) { |
268 | printk("HFS: part requires an argument\n"); | 268 | printk(KERN_ERR "hfs: part requires an argument\n"); |
269 | return 0; | 269 | return 0; |
270 | } | 270 | } |
271 | break; | 271 | break; |
272 | case opt_session: | 272 | case opt_session: |
273 | if (match_int(&args[0], &hsb->session)) { | 273 | if (match_int(&args[0], &hsb->session)) { |
274 | printk("HFS: session requires an argument\n"); | 274 | printk(KERN_ERR "hfs: session requires an argument\n"); |
275 | return 0; | 275 | return 0; |
276 | } | 276 | } |
277 | break; | 277 | break; |
278 | case opt_type: | 278 | case opt_type: |
279 | if (match_fourchar(&args[0], &hsb->s_type)) { | 279 | if (match_fourchar(&args[0], &hsb->s_type)) { |
280 | printk("HFS+-fs: type requires a 4 character value\n"); | 280 | printk(KERN_ERR "hfs: type requires a 4 character value\n"); |
281 | return 0; | 281 | return 0; |
282 | } | 282 | } |
283 | break; | 283 | break; |
284 | case opt_creator: | 284 | case opt_creator: |
285 | if (match_fourchar(&args[0], &hsb->s_creator)) { | 285 | if (match_fourchar(&args[0], &hsb->s_creator)) { |
286 | printk("HFS+-fs: creator requires a 4 character value\n"); | 286 | printk(KERN_ERR "hfs: creator requires a 4 character value\n"); |
287 | return 0; | 287 | return 0; |
288 | } | 288 | } |
289 | break; | 289 | break; |
@@ -292,13 +292,13 @@ static int parse_options(char *options, struct hfs_sb_info *hsb) | |||
292 | break; | 292 | break; |
293 | case opt_codepage: | 293 | case opt_codepage: |
294 | if (hsb->nls_disk) { | 294 | if (hsb->nls_disk) { |
295 | printk("HFS+-fs: unable to change codepage\n"); | 295 | printk(KERN_ERR "hfs: unable to change codepage\n"); |
296 | return 0; | 296 | return 0; |
297 | } | 297 | } |
298 | p = match_strdup(&args[0]); | 298 | p = match_strdup(&args[0]); |
299 | hsb->nls_disk = load_nls(p); | 299 | hsb->nls_disk = load_nls(p); |
300 | if (!hsb->nls_disk) { | 300 | if (!hsb->nls_disk) { |
301 | printk("HFS+-fs: unable to load codepage \"%s\"\n", p); | 301 | printk(KERN_ERR "hfs: unable to load codepage \"%s\"\n", p); |
302 | kfree(p); | 302 | kfree(p); |
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |
@@ -306,13 +306,13 @@ static int parse_options(char *options, struct hfs_sb_info *hsb) | |||
306 | break; | 306 | break; |
307 | case opt_iocharset: | 307 | case opt_iocharset: |
308 | if (hsb->nls_io) { | 308 | if (hsb->nls_io) { |
309 | printk("HFS: unable to change iocharset\n"); | 309 | printk(KERN_ERR "hfs: unable to change iocharset\n"); |
310 | return 0; | 310 | return 0; |
311 | } | 311 | } |
312 | p = match_strdup(&args[0]); | 312 | p = match_strdup(&args[0]); |
313 | hsb->nls_io = load_nls(p); | 313 | hsb->nls_io = load_nls(p); |
314 | if (!hsb->nls_io) { | 314 | if (!hsb->nls_io) { |
315 | printk("HFS: unable to load iocharset \"%s\"\n", p); | 315 | printk(KERN_ERR "hfs: unable to load iocharset \"%s\"\n", p); |
316 | kfree(p); | 316 | kfree(p); |
317 | return 0; | 317 | return 0; |
318 | } | 318 | } |
@@ -326,7 +326,7 @@ static int parse_options(char *options, struct hfs_sb_info *hsb) | |||
326 | if (hsb->nls_disk && !hsb->nls_io) { | 326 | if (hsb->nls_disk && !hsb->nls_io) { |
327 | hsb->nls_io = load_nls_default(); | 327 | hsb->nls_io = load_nls_default(); |
328 | if (!hsb->nls_io) { | 328 | if (!hsb->nls_io) { |
329 | printk("HFS: unable to load default iocharset\n"); | 329 | printk(KERN_ERR "hfs: unable to load default iocharset\n"); |
330 | return 0; | 330 | return 0; |
331 | } | 331 | } |
332 | } | 332 | } |
@@ -364,7 +364,7 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent) | |||
364 | 364 | ||
365 | res = -EINVAL; | 365 | res = -EINVAL; |
366 | if (!parse_options((char *)data, sbi)) { | 366 | if (!parse_options((char *)data, sbi)) { |
367 | hfs_warn("hfs_fs: unable to parse mount options.\n"); | 367 | printk(KERN_ERR "hfs: unable to parse mount options.\n"); |
368 | goto bail; | 368 | goto bail; |
369 | } | 369 | } |
370 | 370 | ||
@@ -375,7 +375,7 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent) | |||
375 | res = hfs_mdb_get(sb); | 375 | res = hfs_mdb_get(sb); |
376 | if (res) { | 376 | if (res) { |
377 | if (!silent) | 377 | if (!silent) |
378 | hfs_warn("VFS: Can't find a HFS filesystem on dev %s.\n", | 378 | printk(KERN_WARNING "hfs: can't find a HFS filesystem on dev %s.\n", |
379 | hfs_mdb_name(sb)); | 379 | hfs_mdb_name(sb)); |
380 | res = -EINVAL; | 380 | res = -EINVAL; |
381 | goto bail; | 381 | goto bail; |
@@ -407,7 +407,7 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent) | |||
407 | bail_iput: | 407 | bail_iput: |
408 | iput(root_inode); | 408 | iput(root_inode); |
409 | bail_no_root: | 409 | bail_no_root: |
410 | hfs_warn("hfs_fs: get root inode failed.\n"); | 410 | printk(KERN_ERR "hfs: get root inode failed.\n"); |
411 | bail: | 411 | bail: |
412 | hfs_mdb_put(sb); | 412 | hfs_mdb_put(sb); |
413 | return res; | 413 | return res; |
@@ -454,7 +454,7 @@ static void __exit exit_hfs_fs(void) | |||
454 | { | 454 | { |
455 | unregister_filesystem(&hfs_fs_type); | 455 | unregister_filesystem(&hfs_fs_type); |
456 | if (kmem_cache_destroy(hfs_inode_cachep)) | 456 | if (kmem_cache_destroy(hfs_inode_cachep)) |
457 | printk(KERN_INFO "hfs_inode_cache: not all structures were freed\n"); | 457 | printk(KERN_ERR "hfs_inode_cache: not all structures were freed\n"); |
458 | } | 458 | } |
459 | 459 | ||
460 | module_init(init_hfs_fs) | 460 | module_init(init_hfs_fs) |