[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Libstore && libparted patches.
From: |
Harley D. Eades III |
Subject: |
Re: Libstore && libparted patches. |
Date: |
14 Aug 2004 14:56:06 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
ams,
This change is need in parted to be able to use paths with parted.
In gnu.c right now it is using store_typed_open which needs a name
like foo:bar. This changed allows you use such things as /dev/hd2
for example.
Thanks
hde
ams@kemisten.nu (Alfred M. Szmidt) writes:
> --- /home/hde/PATCHED_parted-1.6.11/libparted/gnu.c 2004-08-13
> 09:57:20.000000000 -0500
> +++ /home/hde/parted-1.6.11/libparted/gnu.c 2004-04-24
> 22:34:00.000000000 -0500
> @@ -235,16 +235,7 @@
> arch_specific->consume = 1;
>
> retry_open:
> - /* Simple test to determine if the user uses a path or TYPE:NAME. */
> - if (strchr (path, '/') == NULL)
> - {
> - err = store_typed_open (dev->path, 0, NULL, &arch_specific->store);
> - }
> - else
> - {
> - err = store_open (dev->path, 0, NULL, &arch_specific->store);
> - }
> -
> + err = store_typed_open (dev->path, 0, NULL, &arch_specific->store);
> if (err) {
> error_t rw_err = err;
>
> Why is this change needed in parted?