*/
const char *mnt_update_get_filename(struct libmnt_update *upd)
{
+ assert(upd);
return upd ? upd->filename : NULL;
}
*/
int mnt_update_is_ready(struct libmnt_update *upd)
{
+ assert(upd);
return upd ? upd->ready : FALSE;
}
*/
struct libmnt_fs *mnt_update_get_fs(struct libmnt_update *upd)
{
+ assert(upd);
return upd ? upd->fs : NULL;
}
*/
unsigned long mnt_update_get_mflags(struct libmnt_update *upd)
{
+ assert(upd);
return upd ? upd->mountflags : 0;
}
{
int rc = 0;
+ assert(upd);
if (!upd || !upd->fs)
return -EINVAL;
int rc, fd;
char *uq = NULL;
+ assert(upd);
if (!tb || !upd->filename)
return -EINVAL;
static int add_file_entry(struct libmnt_table *tb, struct libmnt_update *upd)
{
- struct libmnt_fs *fs = mnt_copy_fs(NULL, upd->fs);
+ struct libmnt_fs *fs;
+
+ assert(upd);
+ fs = mnt_copy_fs(NULL, upd->fs);
if (!fs)
return -ENOMEM;
struct libmnt_table *tb = NULL;
int rc = 0;
+ assert(upd);
DBG(UPDATE, mnt_debug_h(upd, "%s: modify target", upd->filename));
if (lc)
int rc = -EINVAL;
assert(upd);
-
if (!upd || !upd->filename)
return -EINVAL;
if (!upd->ready)