@@ -168,24 +168,24 @@ if ($in{'create'} =~ "zpool")
168
168
$in {' snap' } = $in {' clone' };
169
169
} elsif ($in {' rename' }) {
170
170
ui_print_header(undef , " Rename" , " " , undef , 1, 1);
171
- print ui_form_start(" cmd.cgi" , " post" );
171
+ print ui_form_start(" cmd.cgi" , " post" );
172
172
%parent = find_parent($in {' rename' });
173
173
if (index ($in {' rename' }, ' @' ) != -1) {
174
174
# is snapshot
175
175
print ui_hidden(' confirm' , ' yes' );
176
176
$parent = $parent {' filesystem' };
177
177
print ui_table_start(' Rename snapshot' , ' width=100%' , ' 6' );
178
- print ui_table_row(undef , ' <b>Snapshot:</b> ' .$in {' rename' });
179
- print ui_table_row(undef , " <b>New Name: </b>" .$parent ." @" .ui_textbox(' name' ));
178
+ print ui_table_row(undef , ' <b>Snapshot:</b> ' .$in {' rename' });
179
+ print ui_table_row(undef , " <b>New Name: </b>" .$parent ." @" .ui_textbox(' name' , $parent { ' snapshot ' }, 35 ));
180
180
print ui_table_row(undef , ui_checkbox(" recurse" , " -r " , " Recursively rename the snapshots of all descendent datasets." ));
181
181
@footer = (" status.cgi?snap=" .$in {' rename' }, $in {' rename' });
182
182
} elsif (index ($in {' rename' }, ' /' ) != -1) {
183
- # is filesystem
183
+ # is filesystem
184
184
$parent = $parent {' pool' };
185
185
ui_zfs_list(" -r " .$in {' rename' });
186
186
print ui_table_start(' Rename filesystem' , ' width=100%' , ' 6' );
187
187
print ui_table_row(undef , ' <b>Filesystem:</b> ' .$in {' rename' });
188
- print ui_table_row(undef , " <b>New Name: </b>" .$parent ." /" .ui_textbox(' name' ));
188
+ print ui_table_row(undef , " <b>New Name: </b>" .$parent ." /" .ui_textbox(' name' , undef , 35 ));
189
189
print ui_table_row(undef , ui_checkbox(" prnt" , " -p " , " Create all the nonexistent parent datasets." ));
190
190
}
191
191
print ui_table_row(undef , ui_checkbox(" force" , " -f " , " Force unmount any filesystems that need to be unmounted in the process." ));
0 commit comments