/* * lowlevel.c * * PURPOSE * Low Level Device Routines for the UDF filesystem * * COPYRIGHT * This file is distributed under the terms of the GNU General Public * License (GPL). Copies of the GPL can be obtained from: * ftp://prep.ai.mit.edu/pub/gnu/GPL * Each contributing author retains all rights to their own work. * * (C) 1999-2001 Ben Fennema * * HISTORY * * 03/26/99 blf Created. */ #include "udfdecl.h" #include <linux/blkdev.h> #include <linux/cdrom.h> #include <linux/uaccess.h> #include "udf_sb.h"
unsigned int udf_get_last_session(struct super_block *sb) { struct cdrom_multisession ms_info; unsigned int vol_desc_start; struct block_device *bdev = sb->s_bdev; int i; vol_desc_start = 0; ms_info.addr_format = CDROM_LBA; i = ioctl_by_bdev(bdev, CDROMMULTISESSION, (unsigned long)&ms_info); if (i == 0) { udf_debug("XA disk: %s, vol_desc_start=%d\n", ms_info.xa_flag ? "yes" : "no", ms_info.addr.lba); if (ms_info.xa_flag) /* necessary for a valid ms_info.addr */ vol_desc_start = ms_info.addr.lba; } else { udf_debug("CDROMMULTISESSION not supported: rc=%d\n", i); } return vol_desc_start; }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
pre-git | pre-git | 112 | 100.00% | 2 | 100.00% |
Total | 112 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
pre-git | pre-git | 57 | 79.17% | 6 | 54.55% |
al viro | al viro | 5 | 6.94% | 1 | 9.09% |
jan kara | jan kara | 5 | 6.94% | 1 | 9.09% |
linus torvalds | linus torvalds | 3 | 4.17% | 2 | 18.18% |
ben fennema | ben fennema | 2 | 2.78% | 1 | 9.09% |
Total | 72 | 100.00% | 11 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
pre-git | pre-git | 183 | 91.50% | 6 | 46.15% |
al viro | al viro | 5 | 2.50% | 1 | 7.69% |
jan kara | jan kara | 5 | 2.50% | 1 | 7.69% |
linus torvalds | linus torvalds | 3 | 1.50% | 2 | 15.38% |
ben fennema | ben fennema | 2 | 1.00% | 1 | 7.69% |
fabian frederick | fabian frederick | 1 | 0.50% | 1 | 7.69% |
adrian bunk | adrian bunk | 1 | 0.50% | 1 | 7.69% |
cyrill gorcunov | cyrill gorcunov | 0.00% | 0 | 0.00% | |
Total | 200 | 100.00% | 13 | 100.00% |