Re: [PATCH] device-assignment: Reset device on system reset

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

 



* Alex Williamson (alex.williamson@xxxxxxxxxx) wrote:
> On Thu, 2011-03-17 at 14:12 -0700, Chris Wright wrote:
> > * Alex Williamson (alex.williamson@xxxxxxxxxx) wrote:
> > > +    fd = open(reset_file, O_WRONLY);
> > > +    if (fd != -1) {
> > > +        ret = write(fd, reset, strlen(reset));
> > > +        close(fd);
> > > +    }
> > 
> > This will probably fail when it's managed by libvirt.  I expect it
> > will need some file ownership and security label mgmt added to device
> > assignement path I expect.
> 
> Already posted a patch for adding file rights, seems to be sufficient:
> 
> https://www.redhat.com/archives/libvir-list/2011-March/msg00823.html

Awesome, I missed that path, thanks Alex!

thanks,
-chris

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]