search for: 234,10

Displaying 20 results from an estimated 36 matches for "234,10".

Did you mean: 204,10
2020 Aug 26
2
[supermin PATCH] rpm: check for SQLite-based RPM DB
...based DB first, falling back to the old format. Signed-off-by: Pino Toscano <ptoscano@redhat.com> --- src/ph_rpm.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml index dbe3bda..0821126 100644 --- a/src/ph_rpm.ml +++ b/src/ph_rpm.ml @@ -234,7 +234,10 @@ let rpm_package_name pkg = rpm.name let rpm_get_package_database_mtime () = - (lstat "/var/lib/rpm/Packages").st_mtime + try + (lstat "/var/lib/rpm/rpmdb.sqlite").st_mtime + with Unix_error (ENOENT, _, _) -> + (lstat "/var/lib/rpm/Packages&quo...
2014 Sep 09
2
mutex
...020 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -194,6 +194,7 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf, } mutex_unlock(&rng_mutex); + udelay(100); if (need_resched()) schedule_timeout_interruptible(1); @@ -233,10 +234,10 @@ static ssize_t hwrng_attr_current_store(struct device *dev, int err; struct hwrng *rng; + err = -ENODEV; err = mutex_lock_interruptible(&rng_mutex); if (err) return -ERESTARTSYS; - err = -ENODEV; list_for_each_entry(rng, &rng_list, list) { if (strcmp(rng->name, bu...
2014 Sep 09
2
mutex
...020 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -194,6 +194,7 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf, } mutex_unlock(&rng_mutex); + udelay(100); if (need_resched()) schedule_timeout_interruptible(1); @@ -233,10 +234,10 @@ static ssize_t hwrng_attr_current_store(struct device *dev, int err; struct hwrng *rng; + err = -ENODEV; err = mutex_lock_interruptible(&rng_mutex); if (err) return -ERESTARTSYS; - err = -ENODEV; list_for_each_entry(rng, &rng_list, list) { if (strcmp(rng->name, bu...
2020 Aug 27
1
Re: [supermin PATCH] rpm: check for SQLite-based RPM DB
...redhat.com> > > --- > > src/ph_rpm.ml | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml > > index dbe3bda..0821126 100644 > > --- a/src/ph_rpm.ml > > +++ b/src/ph_rpm.ml > > @@ -234,7 +234,10 @@ let rpm_package_name pkg = > > rpm.name > > > > let rpm_get_package_database_mtime () = > > - (lstat "/var/lib/rpm/Packages").st_mtime > > + try > > + (lstat "/var/lib/rpm/rpmdb.sqlite").st_mtime > > + with Unix_...
2014 Sep 10
2
RFC virtio-rng: fail to read sysfs of a busy device
...@ static ssize_t rng_dev_read(struct file *filp, char __user *buf, > } > > mutex_unlock(&rng_mutex); > + udelay(100); We have a need_resched() right below. Why doesn't that work? > if (need_resched()) > schedule_timeout_interruptible(1); > @@ -233,10 +234,10 @@ static ssize_t hwrng_attr_current_store(struct device *dev, > int err; > struct hwrng *rng; The following hunk doesn't work: > + err = -ENODEV; > err = mutex_lock_interruptible(&rng_mutex); err is being set to another value in the next line! > if (err) >...
2014 Sep 10
2
RFC virtio-rng: fail to read sysfs of a busy device
...@ static ssize_t rng_dev_read(struct file *filp, char __user *buf, > } > > mutex_unlock(&rng_mutex); > + udelay(100); We have a need_resched() right below. Why doesn't that work? > if (need_resched()) > schedule_timeout_interruptible(1); > @@ -233,10 +234,10 @@ static ssize_t hwrng_attr_current_store(struct device *dev, > int err; > struct hwrng *rng; The following hunk doesn't work: > + err = -ENODEV; > err = mutex_lock_interruptible(&rng_mutex); err is being set to another value in the next line! > if (err) >...
2018 Aug 14
0
[PATCH] v2v: Verify that ’source.s_disks.s_disk_id‘s are all unique.
...ndex 09bc4f37d..1775200d3 100644 --- a/v2v/v2v.ml +++ b/v2v/v2v.ml @@ -31,6 +31,7 @@ open Utils open Cmdline module G = Guestfs +module IntSet = Set.Make(struct let compare = compare type t = int end) (* Conversion mode, either normal (copying) or [--in-place]. *) type conversion_mode = @@ -234,10 +235,15 @@ and open_source cmdline input = if source.s_disks = [] then error (f_"source has no hard disks!"); - List.iter ( - fun disk -> - assert (disk.s_qemu_uri <> ""); - ) source.s_disks; + let () = + let ids = ref IntSet.empty in + Lis...
2020 Aug 26
0
Re: [supermin PATCH] rpm: check for SQLite-based RPM DB
...gt; Signed-off-by: Pino Toscano <ptoscano@redhat.com> > --- > src/ph_rpm.ml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml > index dbe3bda..0821126 100644 > --- a/src/ph_rpm.ml > +++ b/src/ph_rpm.ml > @@ -234,7 +234,10 @@ let rpm_package_name pkg = > rpm.name > > let rpm_get_package_database_mtime () = > - (lstat "/var/lib/rpm/Packages").st_mtime > + try > + (lstat "/var/lib/rpm/rpmdb.sqlite").st_mtime > + with Unix_error (ENOENT, _, _) -> > +...
2014 Sep 09
0
RFC virtio-rng: fail to read sysfs of a busy device
...020 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -194,6 +194,7 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf, } mutex_unlock(&rng_mutex); + udelay(100); if (need_resched()) schedule_timeout_interruptible(1); @@ -233,10 +234,10 @@ static ssize_t hwrng_attr_current_store(struct device *dev, int err; struct hwrng *rng; + err = -ENODEV; err = mutex_lock_interruptible(&rng_mutex); if (err) return -ERESTARTSYS; - err = -ENODEV; list_for_each_entry(rng, &rng_list, list) { if (strcmp(rng->name, bu...
2014 Sep 10
0
RFC virtio-rng: fail to read sysfs of a busy device
...if (need_resched()) - schedule_timeout_interruptible(1); + schedule_timeout_interruptible(1); if (signal_pending(current)) { err = -ERESTARTSYS; > > schedule_timeout_interruptible(1); > > @@ -233,10 +234,10 @@ static ssize_t hwrng_attr_current_store(struct device *dev, > > int err; > > struct hwrng *rng; > The following hunk doesn't work: > > > + err = -ENODEV; > > err = mutex_lock_interruptible(&rng_mutex); > > err is being set to another value...
2013 May 15
0
[PATCH] Fix dead links and update news
.../a> and Robert F. Rice; their universal codes are used by FLAC's entropy coder. </li> <li> N. Levinson and J. Durbin; the reference encoder uses an algorithm developed and refined by them for determining the LPC coefficients from the autocorrelation coefficients. @@ -234,10 +234,10 @@ <b>Constant</b>. This predictor is used whenever the subblock is pure DC ("digital silence"), i.e. a constant value throughout. The signal is run-length encoded and added to the stream. </li> <li> - <b>Fixed linear predictor&lt...
2023 Mar 06
0
[PATCH v4 01/15] vdpa net: move iova tree creation from init to start
...er(&s->vhost_vdpa.iova_tree, vhost_iova_tree_delete); > > >>> - } > > >>> if (s->vhost_net) { > > >>> vhost_net_cleanup(s->vhost_net); > > >>> g_free(s->vhost_net); > > >>> @@ -234,10 +230,64 @@ static ssize_t vhost_vdpa_receive(NetClientState *nc, const uint8_t *buf, > > >>> return size; > > >>> } > > >>> > > >>> +/** From any vdpa net client, get the netclient of first queue pair */ > > >>>...
2017 Apr 13
0
[PATCH v9 5/5] virtio-balloon: VIRTIO_BALLOON_F_MISC_VQ
...unk_hdr; + struct virtio_balloon_page_chunk *unused_page_chunk; + + /* Buffer for host to send cmd to miscq */ + struct virtio_balloon_miscq_hdr *miscq_in_hdr; + /* Bitmap used to record pages */ unsigned long *page_bmap[PAGE_BMAP_COUNT_MAX]; /* Number of the allocated page_bmap */ @@ -220,6 +234,10 @@ static void send_page_chunks(struct virtio_balloon *vb, struct virtqueue *vq, hdr = vb->balloon_page_chunk_hdr; len = 0; break; + case PAGE_CHUNK_TYPE_UNUSED: + hdr = vb->unused_page_chunk_hdr; + len = sizeof(struct virtio_balloon_miscq_hdr); + break; default: dev_warn(...
2013 May 15
0
[PATCH 2/2] Fix dead links and update news
.../a> and Robert F. Rice; their universal codes are used by FLAC's entropy coder. </li> <li> N. Levinson and J. Durbin; the reference encoder uses an algorithm developed and refined by them for determining the LPC coefficients from the autocorrelation coefficients. @@ -234,10 +234,10 @@ <b>Constant</b>. This predictor is used whenever the subblock is pure DC ("digital silence"), i.e. a constant value throughout. The signal is run-length encoded and added to the stream. </li> <li> - <b>Fixed linear predictor&lt...
2017 Nov 22
2
[PATCH 03/32] therm: Split return code and value in nvkm_get_temp
...;therm->sensor.alarm_program_lock, flags); > > /* schedule the next poll in one second */ > - if (therm->func->temp_get(therm) >= 0) > + if (!therm->func->temp_get(therm, &val)) > nvkm_timer_alarm(tmr, 1000000000ULL, alarm); > } > > @@ -227,9 +234,10 @@ nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) > void > nvkm_therm_sensor_preinit(struct nvkm_therm *therm) > { > + int val; > const char *sensor_avail = "yes"; > > - if (therm->func->temp_get(therm) < 0) > + if (therm->func...
2017 Oct 08
1
[RFC PATCH 01/29] therm: split return code and value in nvkm_get_temp
...>sensor.alarm_program_lock, flags); > > /* schedule the next poll in one second */ > - if (therm->func->temp_get(therm) >= 0) > + if (therm->func->temp_get(therm, &val) >= 0) > nvkm_timer_alarm(tmr, 1000000000ULL, alarm); > } > > @@ -227,9 +234,10 @@ nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) > void > nvkm_therm_sensor_preinit(struct nvkm_therm *therm) > { > + int val; > const char *sensor_avail = "yes"; > > - if (therm->func->temp_get(therm) < 0) > + if (therm->func...
2017 Sep 15
0
[RFC PATCH 01/29] therm: split return code and value in nvkm_get_temp
...rm) spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); /* schedule the next poll in one second */ - if (therm->func->temp_get(therm) >= 0) + if (therm->func->temp_get(therm, &val) >= 0) nvkm_timer_alarm(tmr, 1000000000ULL, alarm); } @@ -227,9 +234,10 @@ nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) void nvkm_therm_sensor_preinit(struct nvkm_therm *therm) { + int val; const char *sensor_avail = "yes"; - if (therm->func->temp_get(therm) < 0) + if (therm->func->temp_get(therm, &val) < 0)...
2017 Nov 22
1
[PATCH 03/32] therm: Split return code and value in nvkm_get_temp
...hedule the next poll in one second */ >>> - if (therm->func->temp_get(therm) >= 0) >>> + if (!therm->func->temp_get(therm, &val)) >>> nvkm_timer_alarm(tmr, 1000000000ULL, alarm); >>> } >>> >>> @@ -227,9 +234,10 @@ nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) >>> void >>> nvkm_therm_sensor_preinit(struct nvkm_therm *therm) >>> { >>> + int val; >>> const char *sensor_avail = "yes"; >>> >>> - if (th...
2017 Nov 17
0
[PATCH 03/32] therm: Split return code and value in nvkm_get_temp
...rm *alarm) spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); /* schedule the next poll in one second */ - if (therm->func->temp_get(therm) >= 0) + if (!therm->func->temp_get(therm, &val)) nvkm_timer_alarm(tmr, 1000000000ULL, alarm); } @@ -227,9 +234,10 @@ nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) void nvkm_therm_sensor_preinit(struct nvkm_therm *therm) { + int val; const char *sensor_avail = "yes"; - if (therm->func->temp_get(therm) < 0) + if (therm->func->temp_get(therm, &val)) senso...
2017 Nov 22
0
[PATCH 03/32] therm: Split return code and value in nvkm_get_temp
...gt; >> /* schedule the next poll in one second */ >> - if (therm->func->temp_get(therm) >= 0) >> + if (!therm->func->temp_get(therm, &val)) >> nvkm_timer_alarm(tmr, 1000000000ULL, alarm); >> } >> >> @@ -227,9 +234,10 @@ nvkm_therm_sensor_fini(struct nvkm_therm *therm, bool suspend) >> void >> nvkm_therm_sensor_preinit(struct nvkm_therm *therm) >> { >> + int val; >> const char *sensor_avail = "yes"; >> >> - if (therm->func->temp_get(th...