bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libparted gnu.c patch.


From: Ognyan Kulev
Subject: Re: libparted gnu.c patch.
Date: Sun, 22 Aug 2004 18:43:02 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5

Harley D. Eades III wrote:
I was unaware you can open device paths with store_typed_open. I thought you had to use store_open?

Reference Manual and store.h are incomplete about store_typed_open. Here is what is in libstore/typed.c, and what the code does:

/* Open the store indicated by NAME, which should consist of a store type name followed by a ':' and any type-specific name, returning the new store in STORE. If NAME doesn't contain a `:', then it will be interpreted as either a class name, if such a class occurs in CLASSES, or a filename, which is opened by calling store_open on NAME; a `:' at the end or the beginning of NAME unambiguously causes the remainder to be treated as a class-name or a filename, respectively. CLASSES is used to select classes specified by the type name; if it is 0, STORE_STD_CLASSES is used. */

error_t
store_typed_open (const char *name, int flags,
                  const struct store_class *const *classes,
                  struct store **store)

Regards,
ogi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]