Skip to content

Commit

Permalink
Merge pull request #2128 from phillxnet/2026_support_longer_device_names
Browse files Browse the repository at this point in the history
support longer device names. Fixes #2026
  • Loading branch information
phillxnet authored Feb 11, 2020
2 parents ed99fcf + 3d48ac9 commit dcdb7ca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/rockstor/storageadmin/migrations/0009_auto_20200210_1948.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('storageadmin', '0008_auto_20190115_1637'),
]

operations = [
migrations.AlterField(
model_name='disk',
name='name',
field=models.CharField(unique=True, max_length=192),
),
]
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/models/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Disk(models.Model):
in turn are symlinks to sda, sdb etc. eg ata-QEMU_HARDDISK_QM00005 ie
mostly derived from model and serial number.
"""
name = models.CharField(max_length=128, unique=True)
name = models.CharField(max_length=192, unique=True)
"""btrfs devid 0 is place holder as real devids start from 1"""
devid = models.PositiveSmallIntegerField(default=0) # 0 to 32767
"""total size in KB. Zero if btrfs device detached/last stage of delete."""
Expand Down

0 comments on commit dcdb7ca

Please sign in to comment.