mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
parted: add ahci support
This commit is contained in:
@@ -15,7 +15,7 @@ new file mode 100644
|
|||||||
index 0000000..4fda5e7
|
index 0000000..4fda5e7
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ parted-workdir/libparted/arch/astral.c
|
+++ parted-workdir/libparted/arch/astral.c
|
||||||
@@ -0,0 +1,561 @@
|
@@ -0,0 +1,564 @@
|
||||||
+/*
|
+/*
|
||||||
+ libparted - a library for manipulating disk partitions
|
+ libparted - a library for manipulating disk partitions
|
||||||
+ Copyright (C) 2006-2007, 2009-2014, 2019-2023 Free Software Foundation,
|
+ Copyright (C) 2006-2007, 2009-2014, 2019-2023 Free Software Foundation,
|
||||||
@@ -145,6 +145,9 @@ index 0000000..4fda5e7
|
|||||||
+ if (dev->path && strstr(dev->path, "vioblk"))
|
+ if (dev->path && strstr(dev->path, "vioblk"))
|
||||||
+ return PED_DEVICE_VIRTBLK;
|
+ return PED_DEVICE_VIRTBLK;
|
||||||
+
|
+
|
||||||
|
+ if (dev->path && strstr(dev->path, "ahci"))
|
||||||
|
+ return PED_DEVICE_SCSI;
|
||||||
|
+
|
||||||
+ return PED_DEVICE_UNKNOWN;
|
+ return PED_DEVICE_UNKNOWN;
|
||||||
+error:
|
+error:
|
||||||
+ close(fd);
|
+ close(fd);
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
name=parted
|
name=parted
|
||||||
revision=1
|
revision=2
|
||||||
from_source=parted
|
from_source=parted
|
||||||
imagedeps="build-essential"
|
imagedeps="build-essential"
|
||||||
hostdeps="xgcc xbinutils pkgconfig libtool"
|
hostdeps="xgcc xbinutils pkgconfig libtool"
|
||||||
|
|||||||
Reference in New Issue
Block a user