resize.c (b1489186cc8391e0c1e342f9fbc3eedf6b944c61) | resize.c (8813587a996e7d2ae160be3b79f9f70d9fef4583) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/ext4/resize.c 4 * 5 * Support for resizing an ext4 filesystem while it is mounted. 6 * 7 * Copyright (C) 2001, 2002 Andreas Dilger <adilger@clusterfs.com> 8 * --- 60 unchanged lines hidden (view full) --- 69 * with error, because it can destroy the filesystem easily. 70 */ 71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { 72 ext4_warning(sb, "There are errors in the filesystem, " 73 "so online resizing is not allowed"); 74 return -EPERM; 75 } 76 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/ext4/resize.c 4 * 5 * Support for resizing an ext4 filesystem while it is mounted. 6 * 7 * Copyright (C) 2001, 2002 Andreas Dilger <adilger@clusterfs.com> 8 * --- 60 unchanged lines hidden (view full) --- 69 * with error, because it can destroy the filesystem easily. 70 */ 71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { 72 ext4_warning(sb, "There are errors in the filesystem, " 73 "so online resizing is not allowed"); 74 return -EPERM; 75 } 76 |
77 if (ext4_has_feature_bigalloc(sb)) { 78 ext4_msg(sb, KERN_ERR, "Online resizing not supported with bigalloc"); 79 return -EOPNOTSUPP; 80 } | |
81 if (ext4_has_feature_sparse_super2(sb)) { 82 ext4_msg(sb, KERN_ERR, "Online resizing not supported with sparse_super2"); 83 return -EOPNOTSUPP; 84 } 85 86 if (test_and_set_bit_lock(EXT4_FLAGS_RESIZING, 87 &EXT4_SB(sb)->s_ext4_flags)) 88 ret = -EBUSY; --- 2037 unchanged lines hidden --- | 77 if (ext4_has_feature_sparse_super2(sb)) { 78 ext4_msg(sb, KERN_ERR, "Online resizing not supported with sparse_super2"); 79 return -EOPNOTSUPP; 80 } 81 82 if (test_and_set_bit_lock(EXT4_FLAGS_RESIZING, 83 &EXT4_SB(sb)->s_ext4_flags)) 84 ret = -EBUSY; --- 2037 unchanged lines hidden --- |