Home
last modified time | relevance | path

Searched refs:bytes_per_sector (Results 1 – 12 of 12) sorted by relevance

/third_party/ntfs-3g/libntfs-3g/
Dbootsect.c76 if (le16_to_cpu(b->bpb.bytes_per_sector) < 256 || in ntfs_boot_sector_is_ntfs()
77 le16_to_cpu(b->bpb.bytes_per_sector) > 4096) { in ntfs_boot_sector_is_ntfs()
79 le16_to_cpu(b->bpb.bytes_per_sector)); in ntfs_boot_sector_is_ntfs()
107 i = (u32)le16_to_cpu(b->bpb.bytes_per_sector) * sectors_per_cluster; in ntfs_boot_sector_is_ntfs()
202 vol->sector_size = le16_to_cpu(bs->bpb.bytes_per_sector); in ntfs_boot_sector_parse()
/third_party/ntfs-3g/ntfsprogs/
Dntfsclone.c709 static void rescue_sector(void *fd, u32 bytes_per_sector, off_t pos, void *buff) argument
723 if (read_all(fd, buff, bytes_per_sector) == -1) {
726 memset(buff, '?', bytes_per_sector);
735 static void read_rescue(void *fd, char *buff, u32 csize, u32 bytes_per_sector, argument
748 for (i = 0; i < csize; i += bytes_per_sector)
749 rescue_sector(fd, bytes_per_sector,
768 static u16 bytes_per_sector = NTFS_SECTOR_SIZE; local
772 bytes_per_sector = vol->sector_size;
801 for (i = 0; i < csize; i += bytes_per_sector)
802 rescue_sector(fd, bytes_per_sector,
[all …]
Dntfsck.c120 static short bytes_per_sector, sectors_per_cluster; variable
215 bytes_per_sector = le16_to_cpu(ntfs_boot->bpb.bytes_per_sector); in verify_boot_sector()
216 if (!bytes_per_sector) { in verify_boot_sector()
219 if (bytes_per_sector%512) { in verify_boot_sector()
Dntfsfix.c1252 if (!memcmp(&sector_size_le, &bs->bpb.bytes_per_sector,2) in try_fix_boot()
Dntfsresize.c4378 &bs->bpb.bytes_per_sector,2) in get_volume_data()
Dmkntfs.c4646 bs->bpb.bytes_per_sector = cpu_to_le16(opts.sector_size); in mkntfs_create_root_structures()
/third_party/FreeBSD/sbin/newfs_msdos/
Dmkfs_msdos.h48 AOPT('S', uint16_t, bytes_per_sector, 1, "Bytes per sector") \
Dnewfs_msdos.c122 o.bytes_per_sector = argto2(optarg, 1, "bytes/sector"); in main()
Dmkfs_msdos.c326 if (o.bytes_per_sector) in mkfs_msdos()
327 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos()
333 o.bytes_per_sector && o.size && o.hidden_sectors_set))) { in mkfs_msdos()
/third_party/e2fsprogs/lib/blkid/
Dprobe.c691 int bytes_per_sector, sectors_per_cluster; in probe_ntfs() local
701 bytes_per_sector = ns->bios_parameter_block[0] + in probe_ntfs()
705 if ((bytes_per_sector < 512) || (sectors_per_cluster == 0)) in probe_ntfs()
712 sectors_per_cluster * bytes_per_sector; in probe_ntfs()
720 bytes_per_sector * sectors_per_cluster; in probe_ntfs()
729 off = blkid_le64(ns->mft_cluster_location) * bytes_per_sector * in probe_ntfs()
/third_party/ntfs-3g/include/ntfs-3g/
Dlayout.h50 le16 bytes_per_sector; /* Size of a sector in bytes. */ member
/third_party/libuv/src/win/
Dfs.c2712 DWORD bytes_per_sector; in fs__statfs() local
2721 &bytes_per_sector, in fs__statfs()
2780 stat_fs->f_bsize = bytes_per_sector * sectors_per_cluster; in fs__statfs()