Commit Graph

9 Commits

Author SHA1 Message Date
Karel Zak 7cf389f735 libmount: fix leak in sample program
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-28 23:28:45 +02:00
Karel Zak 6c7d5ae9a2 move struct option to .rodata
It does not make sense to have writable large arrays of "struct
option" on the stack.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-03 15:00:30 +01:00
Benno Schulenberg e8ab5ce3d0 textual: improve the wording of some error and usage messages
[kzak@redhat.com: - cleanup lscpu(1) usage text
                  - use <disk> rather than <device> in partx(8)
                    usage text]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-16 15:46:38 +01:00
Fabian Groffen eb76ca98b0 build-sys: provide alternatives for err, errx, warn and warnx
Solaris lacks err, errx, warn and warnx.  This also means the err.h header
doesn't exist.  Removed err.h include from all files, and included err.h from
c.h instead if it exists, otherwise alternatives are provided.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-02-14 17:45:24 +01:00
Karel Zak cfb9db3095 libmount: cleanup high-level mount API
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-02 21:19:14 +01:00
Karel Zak 68164f6c30 libmount: cleanup API, remove typedef
- replace mnt_ with libmnt_ prefix for types (the old prefix was too generic)
 - remove typedef, use struct everywhere
 - use shorter functions names (s/userspace/user/; s/mountflags/mflags/)

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak 2a1f429ad0 libmount: rename mount.h to libmount.h
The mount.h file name is too generic.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak dbde192307 libmount: split mnt_context_do_mount()
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak 97073441e6 libmount: add mount(8) sample
This code is going to be used as mount(8) replacement in the next
major release (2.20). For now this mount(8) implementation does not
support loopdevs initialization.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-10 14:35:25 +01:00