Displaying 20 results from an estimated 44 matches for "device_path".
Did you mean:
device_page
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started
experimenting with the filesystem quotas, and I have a suggestion for
improvement. On my mail server, I use group-based quotas, and would
like to have Dovecot be able to report these quotas.
It should be simple to implement, requiring only changes to the
quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2009 Jul 06
3
Smart-UPS RT 3000 Baud Rate
...far.
1. It's a Smart-UPS RT 3000 XL
2. The 940-0095B cable now uses an RJ45 connector at the UPS end.
3. It now requires a baud rate of 9600 instead of the 2400 used previously.
Can anyone tell me if modifying drivers/apcsmart.c
void upsdrv_initups(void)
{
char *cable;
upsfd = ser_open(device_path);
ser_set_speed(upsfd, device_path, B2400);
to
void upsdrv_initups(void)
{
char *cable;
upsfd = ser_open(device_path);
ser_set_speed(upsfd, device_path, B9600);
all that is required in order to get nut to talk to it, or will other
things need changing?
Regards,
Richard
2007 Jun 06
1
Possible error in drivers/main-hal.c
Looking at the above sources, it looks like the device_path is
configured twice:
509 device_path = xstrdup("auto"); /*getenv ("HAL_PROP_HIDDEV_DEVICE"); */
626 device_path = xstrdup(argv[0]);
Other than the fact that we leak a few bytes of memory here by using
xstrdup() twice without free'ing in between, I don't think this is...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...QUOTA
- if (strcmp(root->mount->type, "xfs") == 0) {
- /* XFS */
- struct fs_disk_quota xdqblk;
+ if (strcmp(root->mount->type, "xfs") == 0) {
+ /* XFS */
+ struct fs_disk_quota xdqblk;
- if (quotactl(QCMD(Q_XGETQUOTA, USRQUOTA),
- root->mount->device_path,
- root->uid, (caddr_t)&xdqblk) < 0) {
- i_error("quotactl(Q_XGETQUOTA, %s) failed: %m",
- root->mount->device_path);
- quota_set_error(_root->setup->quota,
- "Internal quota error");
- return -1;
- }
+ if (quotactl(QCMD(Q_XGETQUOTA,...
2006 Apr 13
1
Compile issues dovecot-1.0.beta7
...s. I did this by hand rather than
adjusting the configure script; looks like the need for -lcrypto is
detected in other cases, but not here.
====================
In src/plugins/quota/quota-fs.c , line 276:
#ifdef HAVE_QUOTACTL
if (quotactl(QCMD(Q_GETQUOTA, USRQUOTA), root->mount->device_path,
root->uid, (void *)&dqblk) < 0) {
I believe the first two arguments are backwards, i.e., should be:
if (quotactl(root->mount->device_path, QCMD(Q_GETQUOTA, USRQUOTA),
root->uid, (void *)&dqblk) < 0) {
I have a vague reco...
2011 Apr 20
4
[PATCH 1/5] Btrfs: fix bh leak on __btrfs_open_devices path
''bh'' is forgot to release if no error is detected
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
---
fs/btrfs/volumes.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 8b9fb8c..69fc902 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -631,6 +631,7 @@ static int
2013 Mar 02
1
[PATCH] btrfs: return EPERM in btrfs_rm_device()
...>
---
fs/btrfs/volumes.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 5cbb7f4..3e1586c 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -1392,14 +1392,14 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path)
if ((all_avail & BTRFS_BLOCK_GROUP_RAID10) && num_devices <= 4) {
printk(KERN_ERR "btrfs: unable to go below four devices "
"on raid10\n");
- ret = -EINVAL;
+ ret = -EPERM;
goto out;
}
if ((all_avail & BTRFS_BLOCK_GROUP_RAID1) &&...
2009 Jul 27
3
Liebert Power Sure PSPXT 450 (SERIAL)
Hi!
My Liebert Power Sure PSPXT 450 with standard driver doesn't works, so I've
done this modification and now it's works.
# diff liebert_MY.c liebert.c
178
< ser_set_speed(upsfd, device_path, B9600);
---
That is, I've only setup the port's speed.
Can you update SVN code?
Thanks
Bye
Beppe Ursino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20090727/a908bf42/attachment.htm&...
2010 Jun 29
1
NFS(4) IMAP Quota
....000000000 +0200
+++ quota-fs.c 2010-06-29 15:44:45.033517162 +0200
@@ -164,7 +164,7 @@
mount->fd = -1;
#endif
- if (strcmp(mount->type, "nfs") == 0) {
+ if (strcmp(mount->type, "nfs") == 0 || strcmp(mount->type, "nfs4") ==
0) {
if (strchr(mount->device_path, ':') == NULL) {
i_error("quota-fs: %s is not a valid NFS device path",
mount->device_path);
@@ -210,7 +210,7 @@
#ifdef FS_QUOTA_SOLARIS
#ifdef HAVE_RQUOTA
- if (strcmp(mount->type, "nfs") == 0) {
+ if (strcmp(mount->type, "nfs") == 0 || s...
2007 Jun 18
1
Megatec - modem control lines
...=================================================
--- trunk/drivers/megatec.c (revision 965)
+++ trunk/drivers/megatec.c (working copy)
@@ -853,13 +853,22 @@
void upsdrv_initups(void)
{
+ int dtr_bit = TIOCM_DTR;
+ int rts_bit = TIOCM_RTS;
+
upsfd = ser_open(device_path);
ser_set_speed(upsfd, device_path, B2400);
+
+ ioctl(upsfd, TIOCMBIS, &dtr_bit);
+ ioctl(upsfd, TIOCMBIC, &rts_bit);
}
void upsdrv_cleanup(void)
{
+ int dtr_bit = TIOCM_DTR;
+
+ ioctl(upsfd, TIOCMBIC, &dtr_bit);
ser_close(upsfd, device_pa...
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux,
Merry Christmas! These patches will make extlinux work with umounted
ext2/3/4 filesystem, for example:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
Also it can work with something like:
$ extlinux /dev/sdXN --reset-adv
or
$ extlinux file_block --reset-adv
We don't use a new option (I planed to use "-d" but it is already in
use), it will check whether the
2015 Apr 01
2
mge-shut driver fails almost after every reboot
Hello all,
OS name: FreeNAS 9.3
NUT version: 2.7.2
NUT installed method: Bundled with FreenNAS 9.3
Device: EATON 5SC 1000
(http://powerquality.eaton.com/Products-services/Backup-Power-UPS/5SC.aspx?cx=5&wtredirect=www.eaton.com/5SC&GUID=B81251A4-F34E-4373-94B3-B4FB3D0CBCA8)
Problem description:
This was originally reported as bug to FreeNAS
2007 Jul 17
0
Small problem with src/lib/mountpoint.c
...is 10 test machine which had the
mailstore mounted 'normally' using an entry in /etc/vfstab.
However when I changed to use the automounter for the mailstore
obtaining the quota broke.
The problem lies with mountpoint_get(). On a 'normally' mounted
filestore this obtains the device_path of the remote filestore in the
form
remoteservername.some.domain:/remote/path
However when the mailstore was automounted I was instead getting back
auto_direct
which is the name of the automounter map we're using.
The /etc/mnttab file has TWO entries for the auto-mounted filest...
2008 Jun 30
1
[PATCH] tools/python: fix TypeError for 17903:0728459b3c8d
Hi,
If `hda'' is used in a domain config file and domain-0 has /dev/hda,
creating the domain failed by TypeError:
File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in
getDeviceDetails
(device_path, devid) = blkif.blkdev_name_to_number(dev)
TypeError: unpack non-sequence
Signed-off-by: KUWAMURA Shin''ya <kuwa@jp.fujitsu.com>
--
KUWAMURA Shin''ya
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensour...
2011 Jun 28
0
[nut-commits] svn commit r3081 - branches/apcsmart-dev/drivers
Citeren Michal Soltys <msoltyspl-guest at alioth.debian.org>:
> @@ -251,14 +251,14 @@
> if (do_lock_port) {
> errno = 0;
> ret = 0;
> -#ifdef HAVE_UU_LOCK
> + #ifdef HAVE_UU_LOCK
> ret = uu_lock(xbasename(device_path));
> -#elif defined(HAVE_FLOCK)
> + #elif defined(HAVE_FLOCK)
> ret = flock(fd, LOCK_EX | LOCK_NB);
> -#elif defined(HAVE_LOCKF)
> + #elif defined(HAVE_LOCKF)
> lseek(fd, 0L, SEEK_SET);
> ret = lockf(fd, F_TLOCK, 0L);
> -#endif
> + #endif
> if (ret <...
2015 Apr 02
0
mge-shut driver fails almost after every reboot
...The only diff I see between shut in 2.7.1 and 2.7.2 is the following:
--- ../nut-2.7.1/drivers/libshut.c 2013-10-02 14:16:42.000000000 +0200
+++ drivers/libshut.c 2014-02-25 16:39:34.000000000 +0100
@@ -312,7 +312,7 @@
/* FIXME: add variable baudrate detection */
*upsfd = ser_open(device_path);
ser_set_speed(*upsfd, device_path, B2400);
- setline(*upsfd, 0);
+ setline(*upsfd, 1);
/* initialise communication */
if (!shut_synchronise(*upsfd))
This is tied to the PnP feature, and was reverted with the following commit:
https://github.com/networkupstools/nut/commit/7...
2006 May 12
1
Fwd: RE New xanto driver for NUT
Dear Andreas,
some googling revealed, you created a driver for the xanto series of
online-usv.de. In what state it is currently?
I've to manage a S2000 and would like to use nut for it, is it usable by
now? Do you need another tester?
TIA,
Pete
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...> ! printf("Network UPS Tools %s - Megatec protocol driver %s
> [%s]\n", UPS_VERSION, DRV_VERSION, progname);
> printf("Carlos Rodrigues (c) 2003-2007\n\n");
> }
>
>
> void upsdrv_initups(void)
> {
> ! upsfd = ser_open(device_path);
> ! ser_set_speed(upsfd, device_path, B2400);
> }
>
>
> void upsdrv_cleanup(void)
> {
> ! ser_close(upsfd, device_path);
> }
>
>
> --- 766,785 ----
>
> void upsdrv_banner(void)
> {
> ! printf("Network UPS T...
2006 Dec 05
3
megatec over USB - new driver patch
...tec protocol driver %s (%s)\n", DRV_VERSION, UPS_VERSION);
+ printf("Network UPS Tools - Megatec protocol driver %s[%s] (%s)\n", DRV_VERSION, comm->name, UPS_VERSION);
printf("Carlos Rodrigues (c) 2003-2006\n\n");
}
-
void upsdrv_initups(void)
{
- upsfd = ser_open(device_path);
- ser_set_speed(upsfd, device_path, B2400);
+ comm->open(device_path);
}
void upsdrv_cleanup(void)
{
- ser_close(upsfd, device_path);
+ comm->close(device_path);
}
diff -Naur drivers_orig/megatec.h drivers/megatec.h
--- drivers_orig/megatec.h 2006-12-04 13:08:58.000000000 +0300...
2015 Apr 02
2
mge-shut driver fails almost after every reboot
...shut in 2.7.1 and 2.7.2 is the following:
>
> --- ../nut-2.7.1/drivers/libshut.c 2013-10-02 14:16:42.000000000 +0200
> +++ drivers/libshut.c 2014-02-25 16:39:34.000000000 +0100
> @@ -312,7 +312,7 @@
> /* FIXME: add variable baudrate detection */
> *upsfd = ser_open(device_path);
> ser_set_speed(*upsfd, device_path, B2400);
> - setline(*upsfd, 0);
> + setline(*upsfd, 1);
>
> /* initialise communication */
> if (!shut_synchronise(*upsfd))
>
>
> This is tied to the PnP feature, and was reverted with the following
> commit:...