search for: dev_bsiz

Displaying 9 results from an estimated 9 matches for "dev_bsiz".

Did you mean: dev_bsize
2013 Jul 17
3
Help with filing a [maybe] ZFS/mmap bug.
Hi All, I have what I think is a ZFS related bug. Unfortunately my simplest test case is a bit cumbersome and I haven't definitively proven that the problem is ZFS related. I'm hoping for some feedback on how to move forward. Quick background: I rip my CD's using grip and produce flac files. I tag the music using Musicbrainz' Picard and transcode it to mp3's within Picard
2004 Nov 12
0
more 'Quota/disk space display in windows'
...*bsize)/1024)*(*dfree); would do the job to report the correct number of 1024 byte blocks to Windows. however, I'm seeing a report of twice the size, which indicates that *bsize is set to 1024. in /source/smbd/quotas.c I find this #if defined(__FreeBSD__) || defined(__OpenBSD__) *bsize = DEV_BSIZE; great. so the blocksize is set, however I am failing miserably to find the actual definition of DEV_BSIZE, except to see it seems to come from STAT_ST_BLOCKSIZE, which may or may not be set to 512, the 'configure' file is out of my league, and that is where it seems to be defined....
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...it_r_t = dqblk.dqb_bsoftlimit; + } +#elif defined(HAVE_QUOTACTL) + /* BSD, AIX */ + if (quotactl(root->mount->mount_path, QCMD(Q_GETQUOTA, args[i]), + what[i], (void *)&dqblk) < 0) { + quota_error = quota_error + 1; + } + value_r_t = (uint64_t)dqblk.dqb_curblocks * 1024 / DEV_BSIZE; + limit_r_t = (uint64_t)dqblk.dqb_bsoftlimit * 1024 / DEV_BSIZE; +#else + /* Solaris */ + if (root->mount->fd == -1) + return 0; + + ctl.op = Q_GETQUOTA; + ctl.uid = root->uid; + ctl.addr = (caddr_t)&dqblk; + if (ioctl(root->mount->fd, Q_QUOTACTL, &ctl) < 0) { +...
2007 Jan 29
0
dovecot patch for filesystem quota
...s/quota/quota-fs.c.orig 2007-01-28 22:35:32.000000000 +0100 +++ src/plugins/quota/quota-fs.c 2007-01-28 22:36:12.000000000 +0100 @@ -250,8 +250,8 @@ quota_set_error(_root->setup->quota, "Internal quota error"); return -1; } - *value_r = (uint64_t)dqblk.dqb_curblocks * 1024 / DEV_BSIZE; - *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * 1024 / DEV_BSIZE; + *value_r = (uint64_t)dqblk.dqb_curblocks * DEV_BSIZE / 1024; + *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE / 1024; #else /* Solaris */ if (root->mount->fd == -1) ----- End forwarded message -----
2014 Oct 10
1
fixes for quota support on NetBSD
...+ if (quota_get(qh, &qk, &qv) != 0) { if (errno == ESRCH) { fs_quota_root_disable(root, group); return 0; } i_error("quotactl(Q_GETQUOTA, %s) failed: %m", root->mount->mount_path); - return -1; + ret = -1; + goto end; } *value_r = qv.qv_usage * DEV_BSIZE; *limit_r = qv.qv_softlimit * DEV_BSIZE; - return 1; + ret = 1; +end: + quota_close(qh); + return ret; } #endif -------------- next part -------------- $NetBSD: patch-src_plugins_quota_quota-fs.h,v 1.4 2013/08/05 23:12:42 bouyer Exp $ fix support for NetBSD's libquota --- src/plugins...
2008 Jul 08
2
Multiple quota roots with quota-fs backend
Today I've tried to configure multiple filesystem quotas, with some strange results. These are my two filesystems; both using quotas: * /dev/mail mounted to /var/spool/mail using AIX quotas for all users. Mailbox format is 'mbox' and they are named '/var/spool/mail/<logname>' * filer0:/vol/home mounted to /home/f0 via nfs using netapp quotas for all
2003 Aug 22
3
PAE removal patch for testing
...fine NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t))) #define PDRSHIFT 22 /* LOG2(NBPDR) */ -#endif - #define NBPDR (1<<PDRSHIFT) /* bytes/page dir */ #define PDRMASK (NBPDR-1) -#define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t))) -#define NPDEPTD (NPDEPG*NPGPTD) #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define DEV_BSIZE (1<<DEV_BSHIFT) Only in /usr/src/sys/i386/include: param.h.orig diff -u -r /usr/src/sys.old/i386/include/pmap.h /usr/src/sys/i386/include/pmap.h --- /usr/src/sys.old/i386/include/pmap.h Thu Aug 21 18:35:36 2003 +++ /usr/src/sys/i386/include/pmap.h Fri Aug 22 02:03:52 2...
2008 Sep 11
13
PV-GRUB - Does not read partition-less disk
Hi folks PV-GRUB built from Xen 3.3.0 is not able to read from devices without a partition table: | grubdom> root (hd0) | Filesystem type unknown, using whole disk Part of the config: | disk = [ "phy:vg0_sledgehammer/servext_root,xvda,w" ] Device: | # file -s /dev/vg0_sledgehammer/servext_root | /dev/vg0_sledgehammer/servext_root: symbolic link to
2006 Nov 17
1
gjournal on 6.x wont build
Hi all, I was intending on trying out gjournal on a new disk i've added in my desktop. I had a look to see what the most recent patch provided by Pawel and found http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch I created the directories as per Pawel's original post (http://lists.freebsd.org/pipermail/freebsd-fs/2006-June/001962.html) and the patch succeeded with no failed