~ubuntu-branches/debian/sid/vzctl/sid

« back to all changes in this revision

Viewing changes to src/lib/vps_configure.c

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2011-05-31 06:42:51 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110531064251-ohg2zoxsusss7cwq
Tags: 3.0.27-1
* New upstream release. This release solves:
  No documentation for ndsend. Closes: #622682.
* No longer install debian-4.0, 5.0 and 6.0 configuration files as
  the debian target is identical.

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        char buf[64];
191
191
        const char *str_state;
192
192
        struct stat st;
193
 
        dev_res dev;
194
193
        const char *fs_name;
195
194
 
196
195
        if (dq->enable == NO)
207
206
                logger(-1, errno, "Unable to stat %s", root);
208
207
                return -1;
209
208
        }
210
 
        memset(&dev, 0, sizeof(dev));
211
 
        dev.dev = st.st_dev;
212
 
        dev.type = S_IFBLK | VE_USE_MINOR;
213
 
        dev.mask = S_IXGRP;
214
 
        if ((ret = set_devperm(h, veid, &dev)))
215
 
                return ret;
216
209
        i = 0;
217
210
        str_state = state2str(state);
218
211
        snprintf(buf, sizeof(buf), "VE_STATE=%s", str_state);